From: Timo Sirainen Date: Sat, 17 Dec 2016 08:55:01 +0000 (+0200) Subject: lib: Compiler warning fix for 32bit systems X-Git-Tag: 2.3.0.rc1~2408 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad5ece2a07cca5fa033287f70bafdd312e2338a5;p=thirdparty%2Fdovecot%2Fcore.git lib: Compiler warning fix for 32bit systems --- diff --git a/src/lib/test-malloc-overflow.c b/src/lib/test-malloc-overflow.c index 8a2cc82359..d23ff1883e 100644 --- a/src/lib/test-malloc-overflow.c +++ b/src/lib/test-malloc-overflow.c @@ -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);