diff options
| author | Damien George | 2016-01-07 15:09:36 +0000 |
|---|---|---|
| committer | Damien George | 2016-01-07 16:34:11 +0000 |
| commit | 2621f8a3409fc0290190adb86c25504e43420115 (patch) | |
| tree | 179c272b1646dc124f78f523c8478d0ca91b25d6 /stmhal/modstm.c | |
| parent | ea8be373a975356808a19a79f1dd20383bec82ba (diff) | |
stmhal: Make stm constants big ints when they don't fit in a small int.
Adds 924 bytes of code, but means that no more hacks and work-arounds are
needed due to large constants becoming negative.
Diffstat (limited to 'stmhal/modstm.c')
| -rw-r--r-- | stmhal/modstm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stmhal/modstm.c b/stmhal/modstm.c index 74fae3255..005cd824a 100644 --- a/stmhal/modstm.c +++ b/stmhal/modstm.c @@ -34,6 +34,9 @@ #include "extmod/machine_mem.h" #include "portmodules.h" +#include "py/objint.h" +#include "genhdr/modstm_mpz.h" + STATIC const mp_map_elem_t stm_module_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_stm) }, |
