diff options
Diffstat (limited to 'val.c')
-rw-r--r-- | val.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -47,9 +47,10 @@ static ObjString *objstring_create(State *S, char *src, size_t len, uint32_t has return o; } -ObjFunc *objfunc_new(State *S) { +ObjFunc *objfunc_new(State *S, uint8_t arity) { ObjFunc *o = NEW_OBJ(S, ObjFunc, OTY_FUNC); o->ch = chunk_new(S); + o->arity = arity; return o; } |