Skip to content

Commit

Permalink
lib: Compiler warning fix for 32bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Dec 17, 2016
1 parent e7d0bea commit ad5ece2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/test-malloc-overflow.c
Expand Up @@ -32,7 +32,7 @@ static void test_malloc_overflow_add(void)

test_begin("MALLOC_ADD()");
/* check that no compiler warning is given */
test_assert(MALLOC_ADD(2, n) == 2+n);
test_assert(MALLOC_ADD(2, n) == 2U+n);
for (unsigned int i = 0; i < N_ELEMENTS(tests); i++) {
test_assert_idx(MALLOC_ADD(tests[i].a, tests[i].b) == tests[i].a + tests[i].b, i);
test_assert_idx(MALLOC_ADD(tests[i].b, tests[i].a) == tests[i].b + tests[i].a, i);
Expand Down

0 comments on commit ad5ece2

Please sign in to comment.