bugfix in Instruction.decrementCount()
authoradam <adam@megacz.com>
Sat, 27 Jan 2007 12:32:11 +0000 (13:32 +0100)
committeradam <adam@megacz.com>
Sat, 27 Jan 2007 12:32:11 +0000 (13:32 +0100)
src/edu/berkeley/fleet/api/Instruction.java

index 9e7dc14..f72fcec 100644 (file)
@@ -49,7 +49,8 @@ public abstract class Instruction {
 
         public Instruction.Executable decrementCount() {
             if (count==1) return null;
-            return new Executable(benkoBox, dest, count==0 ? 0 : count-0, tokenIn, dataIn, latch, dataOut, tokenOut, recycle);
+            return new Executable(benkoBox, dest, count==0 ? 0 : count-1,
+                                  tokenIn, dataIn, latch, dataOut, tokenOut, recycle);
         }
 
         public String toString() {