py/parsenum: Adjust braces so they are balanced.

This commit is contained in:
Damien George 2018-05-22 13:20:00 +10:00
parent e773a2cdba
commit f2ec792554
1 changed files with 3 additions and 1 deletions

View File

@ -319,11 +319,13 @@ mp_obj_t mp_parse_num_decimal(const char *str, size_t len, bool allow_imag, bool
return mp_obj_new_complex(0, dec_val);
} else if (force_complex) {
return mp_obj_new_complex(dec_val, 0);
}
#else
if (imag || force_complex) {
raise_exc(mp_obj_new_exception_msg(&mp_type_ValueError, "complex values not supported"), lex);
}
#endif
} else {
else {
return mp_obj_new_float(dec_val);
}