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.
This commit is contained in:
parent
c2b5bfcc0c
commit
cb8e2f02ab
1 changed files with 1 additions and 1 deletions
2
py/gc.c
2
py/gc.c
|
|
@ -294,7 +294,7 @@ STATIC void gc_sweep(void) {
|
|||
}
|
||||
#endif
|
||||
free_tail = 1;
|
||||
DEBUG_printf("gc_sweep(%p)\n", PTR_FROM_BLOCK(block));
|
||||
DEBUG_printf("gc_sweep(%p)\n", (void *)PTR_FROM_BLOCK(block));
|
||||
#if MICROPY_PY_GC_COLLECT_RETVAL
|
||||
MP_STATE_MEM(gc_collected)++;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue