Skip to content

Commit 18acd03

Browse files
committed
py/gc: Update debug code to compile with changes to qstr pool types.
Following on from 18b1ba0 and f46a714. Signed-off-by: Damien George <[email protected]>
1 parent 2ea21ab commit 18acd03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

py/gc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -920,13 +920,13 @@ void gc_dump_alloc_table(void) {
920920
// This code prints "Q" for qstr-pool data, and "q" for qstr-str
921921
// data. It can be useful to see how qstrs are being allocated,
922922
// but is disabled by default because it is very slow.
923-
for (qstr_pool_t *pool = MP_STATE_VM(last_pool); c == 'h' && pool != NULL; pool = pool->prev) {
924-
if ((qstr_pool_t *)ptr == pool) {
923+
for (const qstr_pool_t *pool = MP_STATE_VM(last_pool); c == 'h' && pool != NULL; pool = pool->prev) {
924+
if ((const qstr_pool_t *)ptr == pool) {
925925
c = 'Q';
926926
break;
927927
}
928-
for (const byte **q = pool->qstrs, **q_top = pool->qstrs + pool->len; q < q_top; q++) {
929-
if ((const byte *)ptr == *q) {
928+
for (const char *const *q = pool->qstrs, *const *q_top = pool->qstrs + pool->len; q < q_top; q++) {
929+
if ((const char *)ptr == *q) {
930930
c = 'q';
931931
break;
932932
}

0 commit comments

Comments
 (0)