From 21e029c125eaf5176df53cbf40bc6df51640066f Mon Sep 17 00:00:00 2001 From: nicksavers Date: Fri, 10 Oct 2014 15:49:24 +0200 Subject: [PATCH] Fix for SMOD with negative parameters --- ethereumj-core/src/main/java/org/ethereum/vm/DataWord.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/vm/DataWord.java b/ethereumj-core/src/main/java/org/ethereum/vm/DataWord.java index d7f9e6f5..e900674c 100644 --- a/ethereumj-core/src/main/java/org/ethereum/vm/DataWord.java +++ b/ethereumj-core/src/main/java/org/ethereum/vm/DataWord.java @@ -230,7 +230,7 @@ public class DataWord implements Comparable { // TODO: improve with no BigInteger public void sMod(DataWord word) { - if (word.isZero() || word.isNegative()) { + if (word.isZero()) { this.and(ZERO); return; }