From: Danny Al-Gaaf Date: Tue, 21 Feb 2017 15:25:00 +0000 (+0100) Subject: BitAllocator_test.cc: use static_cast instead of c-style X-Git-Tag: v12.0.2~116^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6212f76bbdb9394d9e97d853509d210a75960b79;p=ceph.git BitAllocator_test.cc: use static_cast instead of c-style Signed-off-by: Danny Al-Gaaf --- diff --git a/src/test/objectstore/BitAllocator_test.cc b/src/test/objectstore/BitAllocator_test.cc index fc6ca79b573..5d1da96a016 100644 --- a/src/test/objectstore/BitAllocator_test.cc +++ b/src/test/objectstore/BitAllocator_test.cc @@ -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(iter.next()))) { bmap_test_assert(obj->get_index() == last_idx); bmap_test_assert(obj->get_index() == i); bmap_test_assert(obj == &(*arr)[i]);