diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-21 10:55:08 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-21 10:55:08 +0000 |
commit | c06ea7abf249765bf93595fc42656eed585d7a47 (patch) | |
tree | 6731b5d84040db53f0d4d27791b3dfeb93f8d2c0 /py/objfloat.c | |
parent | 1609f855828d2b932542b3a46158619a7c574555 (diff) | |
download | micropython-c06ea7abf249765bf93595fc42656eed585d7a47.tar.gz micropython-c06ea7abf249765bf93595fc42656eed585d7a47.zip |
py: Implement parsing of infinity and nan for floats.
Diffstat (limited to 'py/objfloat.c')
-rw-r--r-- | py/objfloat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfloat.c b/py/objfloat.c index 401c1145ee..65dafa607e 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -38,7 +38,7 @@ STATIC mp_obj_t float_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const m // a string, parse it uint l; const char *s = mp_obj_str_get_data(args[0], &l); - return mp_parse_num_decimal(s, l); + return mp_parse_num_decimal(s, l, false); } else if (MP_OBJ_IS_TYPE(args[0], &mp_type_float)) { return args[0]; } else { |