From 82e61bdc24eb1d70a342c65e06de113e7375e361 Mon Sep 17 00:00:00 2001 From: xyb Date: Tue, 14 Jan 2014 22:43:18 +0800 Subject: support int(str, basbase) --- py/objint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objint.c') diff --git a/py/objint.c b/py/objint.c index 58fc37b3bb..e5351ce3a1 100644 --- a/py/objint.c +++ b/py/objint.c @@ -24,7 +24,7 @@ static mp_obj_t int_make_new(mp_obj_t type_in, int n_args, const mp_obj_t *args) case 2: // TODO make args[0] and args[1] correct - return MP_OBJ_NEW_SMALL_INT(mp_obj_get_int_base(args[0], args[1])); + return MP_OBJ_NEW_SMALL_INT(mp_obj_get_int_base(args[1], args[0])); default: nlr_jump(mp_obj_new_exception_msg_1_arg(MP_QSTR_TypeError, "int takes at most 2 arguments, %d given", (void*)(machine_int_t)n_args)); -- cgit v1.2.3