]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/libcephfs: remove warning in Windows build
authorIgor Fedotov <igor.fedotov@croit.io>
Thu, 9 Jan 2025 17:08:37 +0000 (20:08 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Mon, 27 Jan 2025 08:07:27 +0000 (11:07 +0300)
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/test/libcephfs/client_cache.cc

index f9e603e914b611b7f5d8b8b82070755444161895..a17bc346553bc5beb3c8c34c15c46232c58c0513 100644 (file)
@@ -202,7 +202,7 @@ public:
       } else {
         // replace CEPH_NOSNAP with 0 as the former is negative
         // and hence might be confused with an error.
-        r = stx.stx_dev == CEPH_NOSNAP ? 0 : stx.stx_dev;
+        r = (uint64_t)stx.stx_dev == CEPH_NOSNAP ? 0 : stx.stx_dev;
         std::cout << "stx=" << stx.stx_ino << "." << r << std::endl;
       }
     }
@@ -219,7 +219,7 @@ public:
       } else {
         // replace CEPH_NOSNAP with 0 as the former is negative
         // and hence might be confused with an error.
-        r = stx.stx_dev == CEPH_NOSNAP ? 0 : stx.stx_dev;
+        r = (uint64_t)stx.stx_dev == CEPH_NOSNAP ? 0 : stx.stx_dev;
         std::cout << "stx=" << stx.stx_ino << "." << r << std::endl;
       }
     }