Skip to content

Commit

Permalink
BitAllocator_test.cc: use static_cast instead of c-style
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf authored and tchaikov committed Apr 10, 2017
1 parent 511159a commit 6212f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/objectstore/BitAllocator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 6212f76

Please sign in to comment.