diff options
author | Damien George <damien.p.george@gmail.com> | 2017-10-05 10:48:23 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-10-05 10:49:44 +1100 |
commit | ff93fd4f50321c6190e1659b19e64fef3045a484 (patch) | |
tree | d6bbf4f3621995facc3d1fea2abecdc2b0d72cb4 | |
parent | 36f7952f764aea782e0223948fabae36abf3ec63 (diff) |
py/persistentcode: Bump .mpy version number to version 3.
The binary and unary ops have changed bytecode encoding.
-rw-r--r-- | ports/minimal/frozentest.mpy | bin | 255 -> 255 bytes | |||
-rw-r--r-- | py/persistentcode.c | 2 | ||||
-rwxr-xr-x | tools/mpy-tool.py | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/ports/minimal/frozentest.mpy b/ports/minimal/frozentest.mpy Binary files differindex 87f9581bf..7c6809bf6 100644 --- a/ports/minimal/frozentest.mpy +++ b/ports/minimal/frozentest.mpy diff --git a/py/persistentcode.c b/py/persistentcode.c index d8b17c7e6..e0bb8f1d6 100644 --- a/py/persistentcode.c +++ b/py/persistentcode.c @@ -39,7 +39,7 @@ #include "py/smallint.h" // The current version of .mpy files -#define MPY_VERSION (2) +#define MPY_VERSION (3) // The feature flags byte encodes the compile-time config options that // affect the generate bytecode. diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index ded962487..5de4ecf1c 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -57,7 +57,7 @@ class FreezeError(Exception): return 'error while freezing %s: %s' % (self.rawcode.source_file, self.msg) class Config: - MPY_VERSION = 2 + MPY_VERSION = 3 MICROPY_LONGINT_IMPL_NONE = 0 MICROPY_LONGINT_IMPL_LONGLONG = 1 MICROPY_LONGINT_IMPL_MPZ = 2 |