We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68d815c commit 3a795e8Copy full SHA for 3a795e8
vm.c
@@ -5,7 +5,7 @@
5
6
static InterpretResult run(VM* vm) {
7
#define READ_BYTE() (*vm->ip++)
8
- #define READ_CONSTANT() (vm->chunk->constants->values[READ_BYTE()])
+ #define READ_CONSTANT() (vm->chunk->constants[READ_BYTE()])
9
#define BINARY_OP(op) \
10
do { \
11
if (!IS_NUMBER(peek(0)) || !IS_NUMBER(peek(1))) { \
0 commit comments