py: Convert [u]int to mp_[u]int_t where appropriate.
Addressing issue #50.
diff --git a/py/objarray.c b/py/objarray.c
index 654c38f..333ab47 100644
--- a/py/objarray.c
+++ b/py/objarray.c
@@ -66,7 +66,7 @@
print(env, "array('%c'", o->typecode);
if (o->len > 0) {
print(env, ", [");
- for (int i = 0; i < o->len; i++) {
+ for (mp_uint_t i = 0; i < o->len; i++) {
if (i > 0) {
print(env, ", ");
}
@@ -92,7 +92,7 @@
mp_obj_t iterable = mp_getiter(initializer);
mp_obj_t item;
- int i = 0;
+ mp_uint_t i = 0;
while ((item = mp_iternext(iterable)) != MP_OBJ_STOP_ITERATION) {
if (len == 0) {
array_append(array, item);
@@ -210,7 +210,7 @@
return res;
#endif
} else {
- uint index = mp_get_index(o->base.type, o->len, index_in, false);
+ mp_uint_t index = mp_get_index(o->base.type, o->len, index_in, false);
if (value == MP_OBJ_SENTINEL) {
// load
return mp_binary_get_val_array(o->typecode, o->items, index);