py: Make tuple and list use mp_int_t/mp_uint_t.
Part of code cleanup, to resolve issue #50.
This commit is contained in:
@@ -307,7 +307,7 @@ mp_obj_t mp_obj_str_binary_op(mp_uint_t op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
|
||||
|
||||
case MP_BINARY_OP_MODULO: {
|
||||
mp_obj_t *args;
|
||||
uint n_args;
|
||||
mp_uint_t n_args;
|
||||
mp_obj_t dict = MP_OBJ_NULL;
|
||||
if (MP_OBJ_IS_TYPE(rhs_in, &mp_type_tuple)) {
|
||||
// TODO: Support tuple subclasses?
|
||||
@@ -394,7 +394,7 @@ STATIC mp_obj_t str_join(mp_obj_t self_in, mp_obj_t arg) {
|
||||
GET_STR_DATA_LEN(self_in, sep_str, sep_len);
|
||||
|
||||
// process args
|
||||
uint seq_len;
|
||||
mp_uint_t seq_len;
|
||||
mp_obj_t *seq_items;
|
||||
if (MP_OBJ_IS_TYPE(arg, &mp_type_tuple)) {
|
||||
mp_obj_tuple_get(arg, &seq_len, &seq_items);
|
||||
|
||||
Reference in New Issue
Block a user