summaryrefslogtreecommitdiff
path: root/val.c
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-22 18:22:24 +0100
committerubq323 <ubq323@ubq323.website>2024-06-22 18:22:24 +0100
commit8c3037662ba572a6935170dbd4cb8cc8a3636417 (patch)
tree1d585a5f0eab8eed96d0741421656f11c99c7c33 /val.c
parent1d496f5f7f01b20fb34e63d1c85a33d8decd1894 (diff)
compilation of functions, and some parts of interpreting them
Diffstat (limited to 'val.c')
-rw-r--r--val.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/val.c b/val.c
index 621b073..930ebd8 100644
--- a/val.c
+++ b/val.c
@@ -49,7 +49,7 @@ static ObjString *objstring_create(State *S, char *src, size_t len, uint32_t has
ObjFunc *objfunc_new(State *S) {
ObjFunc *o = NEW_OBJ(S, ObjFunc, OTY_FUNC);
- o->chunk = chunk_new(S);
+ o->ch = chunk_new(S);
return o;
}