From 1d90577b7e1fa5c4f452471378dd887152a4825c Mon Sep 17 00:00:00 2001 From: Anson Mansfield Date: Sat, 30 Aug 2025 14:37:35 -0400 Subject: py/gc: Clean up usage of GC_ALLOC_FLAG_HAS_FINALISER flag. The calls signature for gc_malloc was changed in 5ed578e5b48730606536ded9a711223ae9a70262, without cleaning up existing code on the rationale that the previous bool is automatically converted to an int with the same meaning. This commit goes back and cleans up existing invocations to make their behavior more readable in a modern context. Signed-off-by: Anson Mansfield --- ports/unix/coverage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ports/unix/coverage.c') diff --git a/ports/unix/coverage.c b/ports/unix/coverage.c index b7c3d2c25..e47558689 100644 --- a/ports/unix/coverage.c +++ b/ports/unix/coverage.c @@ -270,7 +270,7 @@ static mp_obj_t extra_coverage(void) { gc_unlock(); // using gc_realloc to resize to 0, which means free the memory - void *p = gc_alloc(4, false); + void *p = gc_alloc(4, 0); mp_printf(&mp_plat_print, "%p\n", gc_realloc(p, 0, false)); // calling gc_nbytes with a non-heap pointer -- cgit v1.2.3