summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-16 00:01:29 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-16 00:01:29 +0000
commit2e482cdb7b1e457053edcb8585414ecd1eba2cdc (patch)
treedd919156b1fb137a4981224ca847c5123c41f0be /py/runtime.c
parent96056a62721cb4d81856311d9b808460a80b59d4 (diff)
downloadmicropython-2e482cdb7b1e457053edcb8585414ecd1eba2cdc.tar.gz
micropython-2e482cdb7b1e457053edcb8585414ecd1eba2cdc.zip
py: Implement *vargs support.
Addresses issue #295.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 798f7b671c..9d93dbf2ad 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -714,7 +714,7 @@ mp_obj_t rt_make_function_from_id(int unique_code_id, mp_obj_t def_args) {
mp_obj_t fun;
switch (c->kind) {
case MP_CODE_BYTE:
- fun = mp_obj_new_fun_bc(c->n_args, def_args, c->n_state, c->u_byte.code);
+ fun = mp_obj_new_fun_bc(c->scope_flags, c->n_args, def_args, c->n_state, c->u_byte.code);
break;
case MP_CODE_NATIVE:
fun = rt_make_function_n(c->n_args, c->u_native.fun);