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;