tools/mpy-tool.py: Initialize line_info_top.

Without it the line number mapping doesn't work.

Signed-off-by: Martin Milata <martin@martinmilata.cz>
pull/10639/head
Martin Milata 2023-01-26 14:10:18 +01:00 zatwierdzone przez Damien George
rodzic 6abf03b5d0
commit 850f09b109
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -936,6 +936,10 @@ class RawCode(object):
" .line_info = fun_data_%s + %u,"
% (self.escaped_name, self.offset_line_info)
)
print(
" .line_info_top = fun_data_%s + %u,"
% (self.escaped_name, self.offset_closure_info)
)
print(
" .opcodes = fun_data_%s + %u," % (self.escaped_name, self.offset_opcodes)
)