Skip to content

Commit 4b75351

Browse files
committed
py/objzip: Convert mp_uint_t to size_t.
1 parent 00b1a3e commit 4b75351

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/objzip.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
typedef struct _mp_obj_zip_t {
3434
mp_obj_base_t base;
35-
mp_uint_t n_iters;
35+
size_t n_iters;
3636
mp_obj_t iters[];
3737
} mp_obj_zip_t;
3838

@@ -42,7 +42,7 @@ STATIC mp_obj_t zip_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_
4242
mp_obj_zip_t *o = m_new_obj_var(mp_obj_zip_t, mp_obj_t, n_args);
4343
o->base.type = type;
4444
o->n_iters = n_args;
45-
for (mp_uint_t i = 0; i < n_args; i++) {
45+
for (size_t i = 0; i < n_args; i++) {
4646
o->iters[i] = mp_getiter(args[i], NULL);
4747
}
4848
return MP_OBJ_FROM_PTR(o);
@@ -56,7 +56,7 @@ STATIC mp_obj_t zip_iternext(mp_obj_t self_in) {
5656
}
5757
mp_obj_tuple_t *tuple = MP_OBJ_TO_PTR(mp_obj_new_tuple(self->n_iters, NULL));
5858

59-
for (mp_uint_t i = 0; i < self->n_iters; i++) {
59+
for (size_t i = 0; i < self->n_iters; i++) {
6060
mp_obj_t next = mp_iternext(self->iters[i]);
6161
if (next == MP_OBJ_STOP_ITERATION) {
6262
mp_obj_tuple_del(MP_OBJ_FROM_PTR(tuple));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy