Skip to content

Commit cb8e2f0

Browse files
stinosdpgeorge
authored andcommitted
py/gc: Fix debug printing of pointer.
When DEBUG_printf is the standard printf, compilers require the value for %p to be an actual pointer instead of an integer.
1 parent c2b5bfc commit cb8e2f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ STATIC void gc_sweep(void) {
294294
}
295295
#endif
296296
free_tail = 1;
297-
DEBUG_printf("gc_sweep(%p)\n", PTR_FROM_BLOCK(block));
297+
DEBUG_printf("gc_sweep(%p)\n", (void *)PTR_FROM_BLOCK(block));
298298
#if MICROPY_PY_GC_COLLECT_RETVAL
299299
MP_STATE_MEM(gc_collected)++;
300300
#endif

0 commit comments

Comments
 (0)