Skip to content

Commit

Permalink
test: fix printf formating
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored and sreimers committed May 3, 2023
1 parent 38ff36e commit 2516169
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ static int test_unit(const char *name, bool verbose)
for (i=0; i<RE_ARRAY_SIZE(tests); i++) {

if (verbose) {
re_printf("test %u -- %s\n",
re_printf("test %zu -- %s\n",
i, tests[i].name);
}

Expand Down Expand Up @@ -804,8 +804,8 @@ int test_multithread(void)

memset(threadv, 0, sizeof(threadv));

(void)re_fprintf(stderr, "multithread: %u tests"
" with %d repeats (total %u threads): ",
(void)re_fprintf(stderr, "multithread: %zu tests"
" with %d repeats (total %zu threads): ",
RE_ARRAY_SIZE(tests), NUM_REPEAT, NUM_TOTAL);

for (i=0; i<RE_ARRAY_SIZE(threadv); i++) {
Expand Down

0 comments on commit 2516169

Please sign in to comment.