Commit cc5c3c64 authored by Damien George's avatar Damien George

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.
parent 814f17a3
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment