Fixed the test vm for a missed comparison operator

This commit is contained in:
Shing Lyu
2018-06-07 21:46:31 +02:00
parent 4c53f2b727
commit 57aca407bc

View File

@@ -56,7 +56,7 @@ impl VirtualMachine {
loop {
// for instruction in code.instructions {
if self.program_counter > current_frame.instructions.len() {
if self.program_counter >= current_frame.instructions.len() {
break;
}