summaryrefslogtreecommitdiff
path: root/val.c
diff options
context:
space:
mode:
Diffstat (limited to 'val.c')
-rw-r--r--val.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/val.c b/val.c
index 930ebd8..ec200d3 100644
--- a/val.c
+++ b/val.c
@@ -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;
}