summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-26 19:20:06 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-26 19:20:06 +1100
commit3f810daeb310520beb1635510430c0c6b6123548 (patch)
tree4454b8e828b1854ae1a642b76dbe8b6c9bfdf48b
parent9c388f66cff4f1387a06d7076843eedd1a17abad (diff)
downloadmicropython-3f810daeb310520beb1635510430c0c6b6123548.tar.gz
micropython-3f810daeb310520beb1635510430c0c6b6123548.zip
py/obj: Change mp_uint_t to size_t for mp_obj_get_array_fixed_n len arg.
-rw-r--r--py/obj.c2
-rw-r--r--py/obj.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/py/obj.c b/py/obj.c
index 65a35c86fd..c065a3bfcc 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -337,7 +337,7 @@ void mp_obj_get_array(mp_obj_t o, mp_uint_t *len, mp_obj_t **items) {
}
// note: returned value in *items may point to the interior of a GC block
-void mp_obj_get_array_fixed_n(mp_obj_t o, mp_uint_t len, mp_obj_t **items) {
+void mp_obj_get_array_fixed_n(mp_obj_t o, size_t len, mp_obj_t **items) {
mp_uint_t seq_len;
mp_obj_get_array(o, &seq_len, items);
if (seq_len != len) {
diff --git a/py/obj.h b/py/obj.h
index fc122c4905..71945f4f1d 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -677,7 +677,7 @@ void mp_obj_get_complex(mp_obj_t self_in, mp_float_t *real, mp_float_t *imag);
#endif
//qstr mp_obj_get_qstr(mp_obj_t arg);
void mp_obj_get_array(mp_obj_t o, mp_uint_t *len, mp_obj_t **items); // *items may point inside a GC block
-void mp_obj_get_array_fixed_n(mp_obj_t o, mp_uint_t len, mp_obj_t **items); // *items may point inside a GC block
+void mp_obj_get_array_fixed_n(mp_obj_t o, size_t len, mp_obj_t **items); // *items may point inside a GC block
size_t mp_get_index(const mp_obj_type_t *type, size_t len, mp_obj_t index, bool is_slice);
mp_obj_t mp_obj_id(mp_obj_t o_in);
mp_obj_t mp_obj_len(mp_obj_t o_in);