From 2ec351d8d35dc0e5eba0b46efa49c9cfdc6d457c Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Tue, 1 Mar 2016 18:18:05 +0100 Subject: [PATCH] tests: hopefully fix Clang warnings about printf() uses --- tests/utest_assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utest_assert.h b/tests/utest_assert.h index ea5d9d7..b6c3cbc 100644 --- a/tests/utest_assert.h +++ b/tests/utest_assert.h @@ -40,10 +40,10 @@ } #define UTEST_COMPARE_INT(expected, actual) \ - UTEST_COMPARE__INTERNAL(expected, actual, UTEST_EQUALS_OP__INTERNAL, "%d", "int") + UTEST_COMPARE__INTERNAL((int)(expected), (int)(actual), UTEST_EQUALS_OP__INTERNAL, "%d", "int") #define UTEST_COMPARE_UINT(expected, actual) \ - UTEST_COMPARE__INTERNAL(expected, actual, UTEST_EQUALS_OP__INTERNAL, "%u", "uint") + UTEST_COMPARE__INTERNAL((unsigned)(expected), (unsigned)(actual), UTEST_EQUALS_OP__INTERNAL, "%u", "uint") #define UTEST_COMPARE_CSTR(expected, actual) \ UTEST_COMPARE__INTERNAL(expected, actual, UTEST_EQUALS_STRCMP__INTERNAL, "%s", "C-string")