Skip to content

Commit 1221de8

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ bool values_equal(Value a, Value b) {
125125
}
126126

127127
Value peek(int offset) {
128+
VM* vm;
128129
if (vm.stack_top - offset - 1 < 0) {
129-
panic("Stack underflow!");
130+
print("Stack underflow!");
130131
}
131132
return vm.stack[vm.stack_top - offset - 1];
132133
}

0 commit comments

Comments
 (0)