diff options
author | Damien George <damien.p.george@gmail.com> | 2018-05-22 13:20:00 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-05-22 13:20:00 +1000 |
commit | f2ec7925542e5a75b2da7ef378f5df66fdb6fad9 (patch) | |
tree | eee2c50a46fdb6b38a19be78aa2ae860470bd4c1 /py/parsenum.c | |
parent | e773a2cdba11703a0286044b26dfb3da1ae73928 (diff) | |
download | micropython-f2ec7925542e5a75b2da7ef378f5df66fdb6fad9.tar.gz micropython-f2ec7925542e5a75b2da7ef378f5df66fdb6fad9.zip |
py/parsenum: Adjust braces so they are balanced.
Diffstat (limited to 'py/parsenum.c')
-rw-r--r-- | py/parsenum.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/py/parsenum.c b/py/parsenum.c index ba7e40afd6..354d0f756c 100644 --- a/py/parsenum.c +++ b/py/parsenum.c @@ -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); } |