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.
pull/4191/merge
Damien George 2018-09-27 15:15:29 +10:00
rodzic 814f17a3a4
commit cc5c3c64ca
1 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -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);