Fix for SMOD with negative parameters

This commit is contained in:
nicksavers 2014-10-10 15:49:24 +02:00
parent 7663a4b454
commit 21e029c125
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ public class DataWord implements Comparable<DataWord> {
// TODO: improve with no BigInteger // TODO: improve with no BigInteger
public void sMod(DataWord word) { public void sMod(DataWord word) {
if (word.isZero() || word.isNegative()) { if (word.isZero()) {
this.and(ZERO); this.and(ZERO);
return; return;
} }