summaryrefslogtreecommitdiff
path: root/extmod/modujson.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-06-22 10:37:48 +1000
committerDamien George <damien@micropython.org>2022-06-23 11:46:47 +1000
commit627ba381545b73a383b9e56a4b29c03ac5914a4d (patch)
treed667515be03eb09cda47310bae544ee1e92bee4f /extmod/modujson.c
parent61ce260ff73b1191a9190c8cac7a7a1bd5b2f274 (diff)
py/parsenum: Optimise when building with complex disabled.
To reduce code size when MICROPY_PY_BUILTINS_COMPLEX is disabled. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/modujson.c')
-rw-r--r--extmod/modujson.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modujson.c b/extmod/modujson.c
index bee432db2..9a73e4501 100644
--- a/extmod/modujson.c
+++ b/extmod/modujson.c
@@ -270,7 +270,7 @@ STATIC mp_obj_t mod_ujson_load(mp_obj_t stream_obj) {
S_NEXT(s);
}
if (flt) {
- next = mp_parse_num_decimal(vstr.buf, vstr.len, false, false, NULL);
+ next = mp_parse_num_float(vstr.buf, vstr.len, false, NULL);
} else {
next = mp_parse_num_integer(vstr.buf, vstr.len, 10, NULL);
}