summaryrefslogtreecommitdiff
path: root/py/gc.c
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2021-01-27 15:44:53 +0100
committerDamien George <damien@micropython.org>2021-01-30 14:41:29 +1100
commitcb8e2f02ab34b49e5bd42012f3bc9adf61607b25 (patch)
treeae62766dbc78352ecc78ccea48032cd4f0fdcb80 /py/gc.c
parentc2b5bfcc0c6648f549af215f3d2f47302e962c96 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/gc.c b/py/gc.c
index 767f1b81c..41bbaa1b5 100644
--- a/py/gc.c
+++ b/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