fix mpy_ld

This commit is contained in:
Jeff Epler 2023-09-20 11:27:19 -05:00
parent 5108c3a11f
commit 6250cd2711
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 1 additions and 5 deletions

View File

@ -920,15 +920,11 @@ def build_mpy(env, entry_offset, fmpy, native_qstr_vals, native_qstr_objs):
out.open(fmpy)
# MPY: header
<<<<<<< ours
out.write_bytes(bytearray([ord("C"), MPY_VERSION, env.arch.mpy_feature, MP_SMALL_INT_BITS]))
=======
out.write_bytes(
bytearray(
[ord("M"), MPY_VERSION, env.arch.mpy_feature | MPY_SUB_VERSION, MP_SMALL_INT_BITS]
[ord("C"), MPY_VERSION, env.arch.mpy_feature | MPY_SUB_VERSION, MP_SMALL_INT_BITS]
)
)
>>>>>>> theirs
# MPY: n_qstr
out.write_uint(1 + len(native_qstr_vals))