Skip to content

Commit

Permalink
exhaustively pow2 search util INT16_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
asweeney86 committed Dec 21, 2017
1 parent d9f29be commit 4b285d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/check_an_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ is_power_of_2(uint64_t x)
START_TEST(test_an_next_power_of_2)
{

for (uint64_t i = 1; i < UINT16_MAX; i += 15) {
for (uint64_t i = 1; i < INT16_MAX; i++) {
uint64_t v = an_next_power_of_2(i);
ck_assert_msg(is_power_of_2(v));
ck_assert(v >= i);
Expand Down

0 comments on commit 4b285d3

Please sign in to comment.