diff options
Diffstat (limited to 'py/strtonum.c')
-rw-r--r-- | py/strtonum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/strtonum.c b/py/strtonum.c index d8bb05ac8d..74fa3d6759 100644 --- a/py/strtonum.c +++ b/py/strtonum.c @@ -84,7 +84,7 @@ done: return (found ^ neg) - neg; value_error: - nlr_jump(mp_obj_new_exception_msg_2_args(MP_QSTR_ValueError, "invalid literal for int() with base %d: '%s'", (void*)(machine_uint_t)base, s)); + nlr_jump(mp_obj_new_exception_msg_varg(MP_QSTR_ValueError, "invalid literal for int() with base %d: '%s'", base, s)); } #else /* defined(UNIX) */ |