]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
unittest_striper: fix warning
authorSage Weil <sage@inktank.com>
Thu, 30 Jan 2014 17:13:30 +0000 (09:13 -0800)
committerSage Weil <sage@inktank.com>
Thu, 30 Jan 2014 17:13:30 +0000 (09:13 -0800)
In file included from test/test_striper.cc:1:0:
../src/gtest/include/gtest/gtest.h: In function ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = int, T2 = unsigned int]’:
../src/gtest/include/gtest/gtest.h:1300:30: instantiated from ‘static testing::AssertionResult testing::internal::EqHelper::Compare(const char*, const char*, const T1&, const T2&) [with T1 = int, T2 = unsigned int, bool lhs_is_null_literal = false]’
test/test_striper.cc:57:223: instantiated from here
warning: ../src/gtest/include/gtest/gtest.h:1263:3: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/test_striper.cc

index 2e6b0bc47622d084f2acf806464c1151846a0833..9946142d6460867058a132ffc3cd8dd656ad5cd3 100644 (file)
@@ -54,7 +54,7 @@ TEST(Striper, EmptyPartialResult)
   bufferlist outbl;
   r.assemble_result(g_ceph_context, outbl, false);
 
-  ASSERT_EQ(65536, outbl.length());
+  ASSERT_EQ(65536u, outbl.length());
 }