aboutsummaryrefslogtreecommitdiff
path: root/py/objint.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-27 15:15:29 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-27 15:15:29 +1000
commitcc5c3c64cad47dc6155250cd4683d302b07eac3b (patch)
tree3bca257aa16e629920b176fdcec185cb68bfbc70 /py/objint.c
parent814f17a3a4721fae567f7b63e31c87dce5f4383e (diff)
py/objint: Remove TODO about checking of int() arg types with 2 args.
The arguments are checked by mp_obj_str_get_data and mp_obj_get_int.
Diffstat (limited to 'py/objint.c')
-rw-r--r--py/objint.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/objint.c b/py/objint.c
index 270e16969..cd8f20c34 100644
--- a/py/objint.c
+++ b/py/objint.c
@@ -69,7 +69,6 @@ STATIC mp_obj_t mp_obj_int_make_new(const mp_obj_type_t *type_in, size_t n_args,
case 2:
default: {
// should be a string, parse it
- // TODO proper error checking of argument types
size_t l;
const char *s = mp_obj_str_get_data(args[0], &l);
return mp_parse_num_integer(s, l, mp_obj_get_int(args[1]), NULL);