summaryrefslogtreecommitdiffstatshomepage
path: root/tools
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-05-16 18:53:02 +1000
committerDamien George <damien.p.george@gmail.com>2017-05-16 18:53:02 +1000
commit88c51c3592edc6c29fb0aad57c91e535793aa31b (patch)
treecab2a5dca9235c5c1c1177b2e66c74906e370402 /tools
parenta004554dc168049f3656480c7b34608741f76765 (diff)
downloadmicropython-88c51c3592edc6c29fb0aad57c91e535793aa31b.tar.gz
micropython-88c51c3592edc6c29fb0aad57c91e535793aa31b.zip
tools/mpy-tool.py: Fix regression with freezing floats in obj repr C.
Regression was introduced by ec534609f665cb791b8fc1eae1a44e514c297659
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mpy-tool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py
index 483a992db1..544f90cc85 100755
--- a/tools/mpy-tool.py
+++ b/tools/mpy-tool.py
@@ -343,7 +343,7 @@ class RawCode:
print('#elif MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_C')
n = struct.unpack('<I', struct.pack('<f', self.objs[i]))[0]
n = ((n & ~0x3) | 2) + 0x80800000
- print(' MP_ROM_INT(0x%08x),' % (n,))
+ print(' (mp_rom_obj_t)(0x%08x),' % (n,))
print('#else')
print('#error "MICROPY_OBJ_REPR_D not supported with floats in frozen mpy files"')
print('#endif')