summaryrefslogtreecommitdiff
path: root/extmod/modujson.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-05-14 14:45:54 +1000
committerDamien George <damien.p.george@gmail.com>2019-05-14 14:45:54 +1000
commit7c5cf59f8b9a5e62534e78558eb654bc664a3a6f (patch)
tree9c4a8491cc7eb6c6702fdfcc926f2eeb337a45b1 /extmod/modujson.c
parent7359a9e2f205008e05e99032a0b94fdc20281e0f (diff)
extmod/modujson: Handle parsing of floats with + in the exponent.
Fixes issue #4780.
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 830b588fd..f5c6428ef 100644
--- a/extmod/modujson.c
+++ b/extmod/modujson.c
@@ -185,7 +185,7 @@ STATIC mp_obj_t mod_ujson_load(mp_obj_t stream_obj) {
cur = S_CUR(s);
if (cur == '.' || cur == 'E' || cur == 'e') {
flt = true;
- } else if (cur == '-' || unichar_isdigit(cur)) {
+ } else if (cur == '+' || cur == '-' || unichar_isdigit(cur)) {
// pass
} else {
break;