]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: Fix warnings in C write operations test
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 3 May 2016 16:23:17 +0000 (12:23 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 3 May 2016 17:10:27 +0000 (13:10 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/test/librados/c_write_operations.cc

index 24b99765dd70dbba1f8901f256beaea2b1124bf2..575550c59f2eb36857121be1c188272d854b12e3 100644 (file)
@@ -211,7 +211,8 @@ TEST(LibRadosCWriteOps, WriteSame) {
   rados_write_op_writesame(op, "four", 4, 4 * 4, 0);
   ASSERT_EQ(0, rados_write_op_operate(op, ioctx, "test", NULL, 0));
   char hi[4 * 4];
-  ASSERT_EQ(sizeof(hi), rados_read(ioctx, "test", hi, sizeof(hi), 0));
+  ASSERT_EQ(sizeof(hi), static_cast<std::size_t>(
+               rados_read(ioctx, "test", hi,sizeof(hi), 0)));
   rados_release_write_op(op);
   ASSERT_EQ(0, memcmp("fourfourfourfour", hi, sizeof(hi)));