summaryrefslogtreecommitdiff
path: root/py/compile.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-02-13 10:46:11 +1100
committerDamien George <damien@micropython.org>2024-02-16 14:17:01 +1100
commitdef6ad474264a677d22f62c741ef422321a4a41a (patch)
tree6fe582befffdb59316e9c2121f53553bf6af5be3 /py/compile.c
parent5a3dd8c79185be07b7bf68d51ccc8f98ced59182 (diff)
py/emitglue: Include fun_data_len in mp_raw_code_t only when saving.
Reduces the size of mp_raw_code_t in the case when MICROPY_DEBUG_PRINTERS is enabled. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/compile.c')
-rw-r--r--py/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/compile.c b/py/compile.c
index ad8cffc9d..8246a9241 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -3625,7 +3625,7 @@ void mp_compile_to_raw_code(mp_parse_tree_t *parse_tree, qstr source_file, bool
for (scope_t *s = comp->scope_head; s != NULL; s = s->next) {
mp_raw_code_t *rc = s->raw_code;
if (rc->kind == MP_CODE_BYTECODE) {
- mp_bytecode_print(&mp_plat_print, rc, &cm->context->constants);
+ mp_bytecode_print(&mp_plat_print, rc, s->raw_code_data_len, &cm->context->constants);
}
}
}