]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_objectstore: fix i386 build error
authorSage Weil <sage@inktank.com>
Sun, 23 Feb 2014 17:05:56 +0000 (09:05 -0800)
committerSage Weil <sage@inktank.com>
Sun, 23 Feb 2014 17:05:56 +0000 (09:05 -0800)
We can't swap size_t and uint64_t; just change the len type to match.

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

index 938d4ca5ecc94c9ed214c560a773cb53cd0b3847..7b1fa47318499cacca03c23ffad6b5ac6b8d66f3 100644 (file)
@@ -428,7 +428,7 @@ public:
     boost::uniform_int<> u1(0, max_object_len/2);
     boost::uniform_int<> u2(0, max_object_len);
     uint64_t offset = u1(*rng);
-    size_t len = u2(*rng);
+    uint64_t len = u2(*rng);
     bufferlist bl;
     if (offset > len)
       swap(offset, len);