From c1cbc359e9f1c2451e37d42fc6d2df1aae19f3ec Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 7 Sep 2021 22:34:03 -0700 Subject: [PATCH] Fix typo --- clox/src/value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clox/src/value.h b/clox/src/value.h index 6896bea..7dbf99e 100644 --- a/clox/src/value.h +++ b/clox/src/value.h @@ -34,7 +34,7 @@ typedef struct { #define BOOL_VAL(value) ((Value){VAL_BOOL, {.boolean = value}}) #define NIL_VAL ((Value){VAL_NIL, {.number = 0}}) #define NUMBER_VAL(value) ((Value){VAL_NUMBER, {.number = value}}) -#define OBJ_VAL(value) ((Value){VAL_OBJ, {.obj = (Obj *)object}}) +#define OBJ_VAL(value) ((Value){VAL_OBJ, {.obj = (Obj *)value}}) typedef struct { int capacity;