From: Loic Dachary Date: Sun, 19 Oct 2014 16:04:02 +0000 (-0700) Subject: client: fix signed/unsigned compilation warnings X-Git-Tag: v0.88~55^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2751%2Fhead;p=ceph.git client: fix signed/unsigned compilation warnings Signed-off-by: Loic Dachary --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 5155e905eefb..29b92d964c69 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -6279,10 +6279,10 @@ Fh *Client::_create_fh(Inode *in, int flags, int cmode) f->readahead.set_min_readahead_size(conf->client_readahead_min); uint64_t max_readahead = Readahead::NO_LIMIT; if (conf->client_readahead_max_bytes) { - max_readahead = MIN(max_readahead, conf->client_readahead_max_bytes); + max_readahead = MIN(max_readahead, (uint64_t)conf->client_readahead_max_bytes); } if (conf->client_readahead_max_periods) { - max_readahead = MIN(max_readahead, conf->client_readahead_max_periods * p); + max_readahead = MIN(max_readahead, ((uint64_t)conf->client_readahead_max_periods) * p); } f->readahead.set_max_readahead_size(max_readahead); vector alignments;