diff options
Diffstat (limited to 'clox/src/main.c')
-rw-r--r-- | clox/src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clox/src/main.c b/clox/src/main.c index 0f810ba..d2cb6bd 100644 --- a/clox/src/main.c +++ b/clox/src/main.c @@ -12,6 +12,7 @@ int main(int argc, const char *argv[]) { int constant = addConstant(&chunk, 1.2); writeChunk(&chunk, OP_CONSTANT, 123); writeChunk(&chunk, constant, 123); + writeChunk(&chunk, OP_NEGATE, 123); writeChunk(&chunk, OP_RETURN, 123); |