1 parent 3d7f3f0 commit bc04dc2Copy full SHA for bc04dc2
1 file changed
py/gc.c
@@ -735,7 +735,12 @@ void gc_dump_alloc_table(void) {
735
else if (*ptr == &mp_type_list) { c = 'L'; }
736
else if (*ptr == &mp_type_dict) { c = 'D'; }
737
else if (*ptr == &mp_type_str || *ptr == &mp_type_bytes) { c = 'S'; }
738
- else if (*ptr == &mp_type_bytearray || *ptr == &mp_type_array) { c = 'A'; }
+ #if MICROPY_PY_BUILTINS_BYTEARRAY
739
+ else if (*ptr == &mp_type_bytearray) { c = 'A'; }
740
+ #endif
741
+ #if MICROPY_PY_ARRAY
742
+ else if (*ptr == &mp_type_array) { c = 'A'; }
743
744
#if MICROPY_PY_BUILTINS_FLOAT
745
else if (*ptr == &mp_type_float) { c = 'F'; }
746
#endif
0 commit comments