We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a004554 commit 88c51c3Copy full SHA for 88c51c3
tools/mpy-tool.py
@@ -343,7 +343,7 @@ def freeze(self, parent_name):
343
print('#elif MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_C')
344
n = struct.unpack('<I', struct.pack('<f', self.objs[i]))[0]
345
n = ((n & ~0x3) | 2) + 0x80800000
346
- print(' MP_ROM_INT(0x%08x),' % (n,))
+ print(' (mp_rom_obj_t)(0x%08x),' % (n,))
347
print('#else')
348
print('#error "MICROPY_OBJ_REPR_D not supported with floats in frozen mpy files"')
349
print('#endif')
0 commit comments