Skip to content

Commit 6cd5150

Browse files
committed
fix gc_free() to build in mpy-cross
1 parent 3f0b807 commit 6cd5150

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
@@ -963,7 +963,7 @@ void gc_free(void *ptr) {
963963
// assert(area);
964964
#else
965965
// CIRCUITPY-CHANGE: extra checking
966-
if (MP_STATE_MEM(gc_pool_start) == 0) {
966+
if (MP_STATE_MEM(area.gc_pool_start) == 0) {
967967
reset_into_safe_mode(SAFE_MODE_GC_ALLOC_OUTSIDE_VM);
968968
}
969969
assert(VERIFY_PTR(ptr));

0 commit comments

Comments
 (0)