Skip to content

Commit ff93fd4

Browse files
committed
py/persistentcode: Bump .mpy version number to version 3.
The binary and unary ops have changed bytecode encoding.
1 parent 36f7952 commit ff93fd4

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

ports/minimal/frozentest.mpy

0 Bytes
Binary file not shown.

py/persistentcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "py/smallint.h"
4040

4141
// The current version of .mpy files
42-
#define MPY_VERSION (2)
42+
#define MPY_VERSION (3)
4343

4444
// The feature flags byte encodes the compile-time config options that
4545
// affect the generate bytecode.

tools/mpy-tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __str__(self):
5757
return 'error while freezing %s: %s' % (self.rawcode.source_file, self.msg)
5858

5959
class Config:
60-
MPY_VERSION = 2
60+
MPY_VERSION = 3
6161
MICROPY_LONGINT_IMPL_NONE = 0
6262
MICROPY_LONGINT_IMPL_LONGLONG = 1
6363
MICROPY_LONGINT_IMPL_MPZ = 2

0 commit comments

Comments
 (0)