tools/mpy-tool.py: Fix regression with freezing floats in obj repr C.

Regression was introduced by ec534609f6
pull/2913/merge
Damien George 2017-05-16 18:53:02 +10:00
rodzic a004554dc1
commit 88c51c3592
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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')