diff options
Diffstat (limited to 'include/test_util.h')
-rw-r--r-- | include/test_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/test_util.h b/include/test_util.h index 55b1849926..124ef77aa4 100644 --- a/include/test_util.h +++ b/include/test_util.h @@ -52,8 +52,8 @@ #define TEST_EQ(a, b, fmt) TEST_OPERATOR(a, b, ==, fmt) #define TEST_NE(a, b, fmt) TEST_OPERATOR(a, b, !=, fmt) -#define TEST_BITS_SET(a, bits) TEST_OPERATOR(a & bits, bits, ==, "%u") -#define TEST_BITS_CLEARED(a, bits) TEST_OPERATOR(a & bits, 0, ==, "%u") +#define TEST_BITS_SET(a, bits) TEST_OPERATOR(a & (int)bits, (int)bits, ==, "%u") +#define TEST_BITS_CLEARED(a, bits) TEST_OPERATOR(a & (int)bits, 0, ==, "%u") #define __ABS(n) ((n) > 0 ? (n) : -(n)) |