Skip to content

Commit 7f3f9c3

Browse files
authored
Update vm.c
1 parent 1221de8 commit 7f3f9c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ bool values_equal(Value a, Value b) {
126126

127127
Value peek(int offset) {
128128
VM* vm;
129-
if (vm.stack_top - offset - 1 < 0) {
130-
print("Stack underflow!");
129+
if (vm->stack_top - offset - 1 < 0) {
130+
printf("Stack underflow!");
131131
}
132-
return vm.stack[vm.stack_top - offset - 1];
132+
return vm->stack[vm->stack_top - offset - 1];
133133
}

0 commit comments

Comments
 (0)