diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-01-18 17:09:56 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-01-18 17:09:56 -0800 |
| commit | b569e8bab044bb54210e12254a5c22342edb1296 (patch) | |
| tree | 36cef92f981d2eee64982f1c96a4262c9e10de23 /py | |
| parent | b41d386d02f26e81dc1f234826fde7d24b020531 (diff) | |
More make_new updates
Diffstat (limited to 'py')
| -rw-r--r-- | py/modio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/modio.c b/py/modio.c index 9918159cb..d7c1a58a8 100644 --- a/py/modio.c +++ b/py/modio.c @@ -113,8 +113,8 @@ typedef struct _mp_obj_bufwriter_t { byte buf[0]; } mp_obj_bufwriter_t; -STATIC mp_obj_t bufwriter_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { - mp_arg_check_num(n_args, n_kw, 2, 2, false); +STATIC mp_obj_t bufwriter_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *args, mp_map_t *kw_args) { + mp_arg_check_num(n_args, kw_args, 2, 2, false); size_t alloc = mp_obj_get_int(args[1]); mp_obj_bufwriter_t *o = m_new_obj_var(mp_obj_bufwriter_t, byte, alloc); o->base.type = type; |
