Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
d4bd37a5
Commit
d4bd37a5
authored
Mar 16, 2015
by
Damien George
Browse files
py: Fix printing of error message when parsing malformed integer.
parent
78d7c45b
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/parsenum.c
View file @
d4bd37a5
...
...
@@ -149,7 +149,7 @@ value_error:
raise
(
exc
,
lex
);
}
else
{
mp_obj_t
exc
=
mp_obj_new_exception_msg_varg
(
&
mp_type_ValueError
,
"invalid syntax for integer with base %d: '%s'"
,
base
,
str_val_start
);
"invalid syntax for integer with base %d: '%
.*
s'"
,
base
,
top
-
str_val_start
,
str_val_start
);
raise
(
exc
,
lex
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment