summaryrefslogtreecommitdiffstatshomepage
path: root/py/objint_longlong.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objint_longlong.c')
-rw-r--r--py/objint_longlong.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/objint_longlong.c b/py/objint_longlong.c
index d00bb6db3c..f648615a73 100644
--- a/py/objint_longlong.c
+++ b/py/objint_longlong.c
@@ -161,7 +161,8 @@ mp_obj_t mp_obj_new_int_from_ll(long long val) {
return o;
}
-mp_obj_t mp_obj_new_int_from_long_str(const char *s) {
+mp_obj_t mp_obj_new_int_from_qstr(qstr qst) {
+ const char *s = qstr_str(qst);
long long v;
char *end;
// TODO: this doesn't handle Python hacked 0o octal syntax