]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client/Client : Fix sign compare compiler warning
authorPrashant D <pdhange@redhat.com>
Fri, 4 Oct 2019 13:00:56 +0000 (09:00 -0400)
committerPrashant D <pdhange@redhat.com>
Mon, 7 Oct 2019 03:46:42 +0000 (23:46 -0400)
introduced by 394720ca6b7

Signed-off-by: Prashant D <pdhange@redhat.com>
src/client/Client.cc

index 662205a0e9a6d2ccbb73d5a5bbccdf9019fbe6bf..05a5f5d00f14abac8b1954da2c8d413a0ceaf5ef 100644 (file)
@@ -8915,7 +8915,7 @@ loff_t Client::_lseek(Fh *f, loff_t offset, int whence)
     break;
 
   case SEEK_DATA:
-    if (offset < 0 || offset >= in->size) {
+    if (offset < 0 || static_cast<uint64_t>(offset) >= in->size) {
       r = -ENXIO;
       return offset; 
     }
@@ -8923,7 +8923,7 @@ loff_t Client::_lseek(Fh *f, loff_t offset, int whence)
     break;
 
   case SEEK_HOLE:
-    if (offset < 0 || offset >= in->size) {
+    if (offset < 0 || static_cast<uint64_t>(offset) >= in->size) {
       r = -ENXIO;
       pos = offset; 
     } else {