Skip to content

Commit bc43a09

Browse files
committed
Fix: Compiler warnings in i386 builds due to size_t
1 parent 6059f00 commit bc43a09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

yukti.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static void YT__free_testRecord (YT__TestRecord* trecord)
437437
{ \
438438
YT__TestRecord* test = ACL_LIST_ITEM (node, YT__TestRecord, \
439439
failedTestListNode); \
440-
printf ("\n %s* '%s [%lu/%lu]' test failed%s", YT__COL_RED, \
440+
printf ("\n %s* '%s [%zu/%zu]' test failed%s", YT__COL_RED, \
441441
test->test_function_name, test->parameterised_test_number, \
442442
test->parameterised_test_count, YT__COL_RESET); \
443443
} \
@@ -1019,14 +1019,14 @@ static int YT__equal_mem (const void* a, const void* b, unsigned long size, int*
10191019
#define YT__TESTP_DEFINE_TEST_FUNC(tf, fn, ...) \
10201020
static void YT__##fn##_test (size_t count, size_t tn, YT__FUNC_PARAMS_X (__VA_ARGS__)) \
10211021
{ \
1022-
printf ("%s %s [%lu/%lu] %s:%s %s", YT__COL_BLUE_HIGHLIGHT_DARK, YT__COL_WHITE, tn, \
1022+
printf ("%s %s [%zu/%zu] %s:%s %s", YT__COL_BLUE_HIGHLIGHT_DARK, YT__COL_WHITE, tn, \
10231023
count, #tf, #fn, YT__COL_RESET); \
10241024
YT__TEST_IMPL_BODY (tf, fn, count, tn)
10251025

10261026
#define YT__TESTP_DEFINE_TEST_WRAPPER_FUNC(tf, fn, ...) \
10271027
static void fn (size_t count, YT__FUNC_PARAMS_ARRAY_X (__VA_ARGS__)) \
10281028
{ \
1029-
printf ("%s %s %s:%s %s [%lu tests] %s\n", YT__COL_BLUE_HIGHLIGHT, YT__COL_BOLD_WHITE, \
1029+
printf ("%s %s %s:%s %s [%zu tests] %s\n", YT__COL_BLUE_HIGHLIGHT, YT__COL_BOLD_WHITE, \
10301030
#tf, #fn, YT__COL_YELLOW, count, YT__COL_RESET); \
10311031
for (unsigned i = 0; i < count; i++) { \
10321032
YT__##fn##_test (count, i + 1, YT__FCALL_ARGS_ARRAY_X (i, __VA_ARGS__)); \

0 commit comments

Comments
 (0)