From 52077260f9fb6611b3265214e7f2a2de4263f836 Mon Sep 17 00:00:00 2001 From: zhuoyao FENG <zhuoyaof@student.unimelb.edu.au> Date: Sun, 2 Sep 2018 18:13:46 +1000 Subject: [PATCH] assignment1 --- mutants/mutant-3/swen90006/machine/Machine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutants/mutant-3/swen90006/machine/Machine.java b/mutants/mutant-3/swen90006/machine/Machine.java index bc76510..fa8eff7 100755 --- a/mutants/mutant-3/swen90006/machine/Machine.java +++ b/mutants/mutant-3/swen90006/machine/Machine.java @@ -170,7 +170,7 @@ public class Machine int pc = 0; final int progLength = instructions.size(); while(true){ - if (pc < 0 && pc >= progLength){ + if (pc < 0 || pc >= progLength){ /* will cause NoReturnValueException to be thrown * but that is not a bug and and indeed is what the * VM is supposed to do if the pc becomes negative, -- GitLab