summaryrefslogtreecommitdiffstatshomepage
path: root/tools/verifygitlog.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-03-19 10:04:29 +1100
committerDamien George <damien@micropython.org>2024-03-19 10:08:05 +1100
commitbf18ddd98930787c22b561884e0b3807b47d412b (patch)
treed0b6807f02792af20332d1cf32d84eef64529397 /tools/verifygitlog.py
parent7dff38fdc190d7b731fad8319d2ae8aa13fde18a (diff)
downloadmicropython-bf18ddd98930787c22b561884e0b3807b47d412b.tar.gz
micropython-bf18ddd98930787c22b561884e0b3807b47d412b.zip
tools/mpy-tool.py: Fix merging of more than 128 mpy files.
The argument to MP_BC_MAKE_FUNCTION (raw code index) was being encoded as a byte instead of a variable unsigned int. That meant that if there were more than 128 merged mpy files the encoding would be invalid. Fix that by using `mp_encode_uint(idx)` to encode the raw code index. And also use `Opcode` constants for the opcode values to make it easier to understand the code. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools/verifygitlog.py')
0 files changed, 0 insertions, 0 deletions