# HG changeset patch # User Timo Sirainen # Date 1481964901 -7200 # Node ID ce210ada8bc2b9b14a968b7e85b18edef232584e # Parent d223fad9767fbd7f6f079bd939c2534186540119 lib: Compiler warning fix for 32bit systems diff -r d223fad9767f -r ce210ada8bc2 src/lib/test-malloc-overflow.c --- a/src/lib/test-malloc-overflow.c Mon Dec 12 07:28:00 2016 +0200 +++ b/src/lib/test-malloc-overflow.c Sat Dec 17 10:55:01 2016 +0200 @@ -32,7 +32,7 @@ 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);