os/tests: silence -Wsign-compare warning

silence warning like

In file included from
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/test/objectstore/store_test.cc:25:0:
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/googletest/googletest/include/gtest/gtest.h:
In instantiation of 'testing::AssertionResult
testing::internal::CmpHelperEQ(const char*, const char*, const T1&,
const T2&) [with T1 = int; T2 = long unsigned int]':

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2018-11-13 16:45:10 +08:00
parent b14751c18e
commit 0a517ec0ac

View File

@ -7419,7 +7419,7 @@ TEST_P(StoreTest, mergeRegionTest) {
final_len = (offset + chunk_size * 3 - 3) + (chunk_size * 2);
bufferlist bl;
r = store->read(ch, hoid, 0, final_len, bl);
ASSERT_EQ(r, final_len);
ASSERT_EQ(final_len, static_cast<uint64_t>(r));
}
}
#endif // WITH_BLUESTORE