From: Igor Fedotov Date: Thu, 9 Jan 2025 17:08:37 +0000 (+0300) Subject: test/libcephfs: remove warning in Windows build X-Git-Tag: v20.0.0~197^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c9d73451e74f76640336d27ddcfbaa96964c706f;p=ceph.git test/libcephfs: remove warning in Windows build Signed-off-by: Igor Fedotov --- diff --git a/src/test/libcephfs/client_cache.cc b/src/test/libcephfs/client_cache.cc index f9e603e914b6..a17bc346553b 100644 --- a/src/test/libcephfs/client_cache.cc +++ b/src/test/libcephfs/client_cache.cc @@ -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; } }