diff options
author | Damien George <damien@micropython.org> | 2022-03-16 00:33:44 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-03-16 00:41:10 +1100 |
commit | 962ad8622e4c732f76ecbf8d5191ba8216d244d3 (patch) | |
tree | 069d1d397dc6eb27c23a96272f6a2d0bc0976c7f /py/persistentcode.c | |
parent | 3c7cab4e98a31649ed1bc2e728d610856382d6f5 (diff) |
py/parse: Handle check for target small-int size in parser.
This means that all constants for EMIT_ARG(load_const_obj, obj) are created
in the parser (rather than some in the compiler).
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/persistentcode.c')
-rw-r--r-- | py/persistentcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/persistentcode.c b/py/persistentcode.c index b473f1830..6110ae97f 100644 --- a/py/persistentcode.c +++ b/py/persistentcode.c @@ -536,7 +536,7 @@ STATIC void save_obj(mp_print_t *print, mp_obj_t o) { // we save numbers using a simplistic text representation // TODO could be improved byte obj_type; - if (mp_obj_is_type(o, &mp_type_int)) { + if (mp_obj_is_int(o)) { obj_type = 'i'; #if MICROPY_PY_BUILTINS_COMPLEX } else if (mp_obj_is_type(o, &mp_type_complex)) { |