fix mpy magic numbers

This commit is contained in:
Jeff Epler 2023-09-22 13:50:35 -05:00
parent bb0f8149df
commit 566688b028
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 2 additions and 2 deletions

View File

@ -591,12 +591,12 @@ STATIC void save_raw_code(mp_print_t *print, const mp_raw_code_t *rc) {
void mp_raw_code_save(mp_compiled_module_t *cm, mp_print_t *print) {
// header contains:
// byte 'M'
// byte 'C' (CIRCUITPY)
// byte version
// byte native arch (and sub-version if native)
// byte number of bits in a small int
byte header[4] = {
'M',
'C',
MPY_VERSION,
cm->has_native ? MPY_FEATURE_ENCODE_SUB_VERSION(MPY_SUB_VERSION) | MPY_FEATURE_ENCODE_ARCH(MPY_FEATURE_ARCH_DYNAMIC) : 0,
#if MICROPY_DYNAMIC_COMPILER