Skip to content

Commit b33a936

Browse files
committed
Use C formatting macros working for 32/64 bit
1 parent b843384 commit b33a936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/array/lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void f2(intptr_t *a, size_t len)
2626
{
2727
for (size_t i = 0; i < len; i++)
2828
{
29-
printf("c:%li\n", a[i]);
29+
printf("c:%" PRIiPTR "\n", a[i]);
3030
fflush(stdout);
3131
a[i] += 1;
3232
}

0 commit comments

Comments
 (0)