]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_cls_rbd: avoid shift overflow
authorNoah Watkins <noahwatkins@gmail.com>
Mon, 30 Dec 2013 20:43:21 +0000 (12:43 -0800)
committerNoah Watkins <noahwatkins@gmail.com>
Mon, 30 Dec 2013 20:58:37 +0000 (12:58 -0800)
warning: signed shift result (0x500000000) requires 36 bits to represent

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/test/cls_rbd/test_cls_rbd.cc

index c7ea79d81d96651e9e98cf23c496088027b4e277..da41d5596728a9f0db96ebeb7b767df40f141df7 100644 (file)
@@ -309,7 +309,7 @@ TEST(cls_rbd, create)
   ASSERT_EQ(0, rados.ioctx_create(pool_name.c_str(), ioctx));
 
   string oid = "testobj";
-  uint64_t size = 20 << 30;
+  uint64_t size = 20ULL << 30;
   uint64_t features = 0;
   uint8_t order = 22;
   string object_prefix = "foo";