extmod/modujson: Handle parsing of floats with + in the exponent.

Fixes issue #4780.
This commit is contained in:
Damien George
2019-05-14 14:45:54 +10:00
parent 7359a9e2f2
commit 7c5cf59f8b
2 changed files with 2 additions and 1 deletions

View File

@@ -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;