From 6212f76bbdb9394d9e97d853509d210a75960b79 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 21 Feb 2017 16:25:00 +0100 Subject: [PATCH] BitAllocator_test.cc: use static_cast instead of c-style Signed-off-by: Danny Al-Gaaf --- src/test/objectstore/BitAllocator_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/objectstore/BitAllocator_test.cc b/src/test/objectstore/BitAllocator_test.cc index fc6ca79b573fa..5d1da96a016ad 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]); -- 2.39.5