From 4b285d3eea88894d1992325c4450872ff3655a10 Mon Sep 17 00:00:00 2001 From: Andrew Sweeney Date: Thu, 21 Dec 2017 17:03:13 -0500 Subject: [PATCH] exhaustively pow2 search util INT16_MAX --- test/check_an_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/check_an_util.c b/test/check_an_util.c index 1d0ca32..c692e75 100644 --- a/test/check_an_util.c +++ b/test/check_an_util.c @@ -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);