diff options
author | Tom Willemse | 2022-05-31 23:02:18 -0700 |
---|---|---|
committer | Tom Willemse | 2022-05-31 23:02:18 -0700 |
commit | e74cbddb0463e93f5d9742accc20bbed027d0b9b (patch) | |
tree | 84d6f2bde00a3f529054f5bb9c0123815b427adc /clox/src/object.c | |
parent | 1ae50814d3c7fc75fe02f7ce53497cb17f8114ff (diff) | |
download | crafting-interpreters-e74cbddb0463e93f5d9742accc20bbed027d0b9b.tar.gz crafting-interpreters-e74cbddb0463e93f5d9742accc20bbed027d0b9b.zip |
Chapter 25.2
Diffstat (limited to 'clox/src/object.c')
-rw-r--r-- | clox/src/object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clox/src/object.c b/clox/src/object.c index c12fb82..8d26d8b 100644 --- a/clox/src/object.c +++ b/clox/src/object.c @@ -28,6 +28,7 @@ ObjClosure *newClosure(ObjFunction *function) { ObjFunction *newFunction() { ObjFunction *function = ALLOCATE_OBJ(ObjFunction, OBJ_FUNCTION); function->arity = 0; + function->upvalueCount = 0; function->name = NULL; initChunk(&function->chunk); return function; |