]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: fix signed/unsigned compilation warnings 2751/head
authorLoic Dachary <loic-201408@dachary.org>
Sun, 19 Oct 2014 16:04:02 +0000 (09:04 -0700)
committerLoic Dachary <loic-201408@dachary.org>
Sun, 19 Oct 2014 16:04:02 +0000 (09:04 -0700)
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/client/Client.cc

index 5155e905eefb070f8e6e9fd1be751197cd2d40ac..29b92d964c696848a3150cef329ee5a9ab8e670b 100644 (file)
@@ -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<uint64_t> alignments;