summaryrefslogtreecommitdiffstatshomepage
path: root/py/objzip.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-20 12:47:20 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-20 12:47:20 +0000
commitff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660 (patch)
tree16b54a843a312757976e15f24f413e00e151fbe2 /py/objzip.c
parent50912e7f5dc579fd2917537046793dfa30decadf (diff)
downloadmicropython-ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660.tar.gz
micropython-ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660.zip
py, unix: Allow to compile with -Wunused-parameter.
See issue #699.
Diffstat (limited to 'py/objzip.c')
-rw-r--r--py/objzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objzip.c b/py/objzip.c
index e1bf92737a..68f9ed3f39 100644
--- a/py/objzip.c
+++ b/py/objzip.c
@@ -40,7 +40,7 @@ STATIC mp_obj_t zip_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw,
mp_arg_check_num(n_args, n_kw, 0, MP_OBJ_FUN_ARGS_MAX, false);
mp_obj_zip_t *o = m_new_obj_var(mp_obj_zip_t, mp_obj_t, n_args);
- o->base.type = &mp_type_zip;
+ o->base.type = type_in;
o->n_iters = n_args;
for (mp_uint_t i = 0; i < n_args; i++) {
o->iters[i] = mp_getiter(args[i]);