diff options
author | stijn <stijn@ignitron.net> | 2021-01-27 15:44:53 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-01-30 14:41:29 +1100 |
commit | cb8e2f02ab34b49e5bd42012f3bc9adf61607b25 (patch) | |
tree | ae62766dbc78352ecc78ccea48032cd4f0fdcb80 /py/gc.c | |
parent | c2b5bfcc0c6648f549af215f3d2f47302e962c96 (diff) |
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.
Diffstat (limited to 'py/gc.c')
-rw-r--r-- | py/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |