From c9d73451e74f76640336d27ddcfbaa96964c706f Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Thu, 9 Jan 2025 20:08:37 +0300 Subject: [PATCH] test/libcephfs: remove warning in Windows build Signed-off-by: Igor Fedotov --- src/test/libcephfs/client_cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/libcephfs/client_cache.cc b/src/test/libcephfs/client_cache.cc index f9e603e914b61..a17bc346553bc 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; } } -- 2.39.5