diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-21 11:45:46 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-21 11:45:46 +0000 |
commit | 6e48f7fa856e4acaf085dfc8876c4e3772d979c2 (patch) | |
tree | 46c65f64490eae2818fbf9bf334a558453be9e88 /py/runtime.c | |
parent | c06ea7abf249765bf93595fc42656eed585d7a47 (diff) |
py: Allow 'complex()' to take a string as first argument.
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 5604e1a94..c268fd546 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, true); + return mp_parse_num_decimal((const char*)data, len, true, false); } mp_obj_t rt_load_const_str(qstr qstr) { |