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/runtime.c | |
| parent | 1609f855828d2b932542b3a46158619a7c574555 (diff) | |
py: Implement parsing of infinity and nan for floats.
Diffstat (limited to 'py/runtime.c')
| -rw-r--r-- | py/runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c index 9c8ba636c..5604e1a94 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -375,7 +375,7 @@ mp_obj_t rt_load_const_dec(qstr qstr) { DEBUG_OP_printf("load '%s'\n", qstr_str(qstr)); uint len; const byte* data = qstr_data(qstr, &len); - return mp_parse_num_decimal((const char*)data, len); + return mp_parse_num_decimal((const char*)data, len, true); } mp_obj_t rt_load_const_str(qstr qstr) { |
