]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
BitAllocator_test.cc: use static_cast instead of c-style
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 21 Feb 2017 15:25:00 +0000 (16:25 +0100)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Apr 2017 15:34:18 +0000 (23:34 +0800)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/objectstore/BitAllocator_test.cc

index fc6ca79b573facc9340ab44d3ccee6421f9392a7..5d1da96a016addee55895c7900c466d303556ac0 100644 (file)
@@ -99,7 +99,7 @@ TEST(BitAllocator, test_bmap_iter)
   i = off;
   last_idx = off;
   count = 0;
-  while ((obj = (BmapEntityTmp*) iter.next())) {
+  while ((obj = static_cast<BmapEntityTmp*>(iter.next()))) {
     bmap_test_assert(obj->get_index() == last_idx);
     bmap_test_assert(obj->get_index() == i);
     bmap_test_assert(obj == &(*arr)[i]);