Fix for SMOD with negative parameters
This commit is contained in:
parent
7663a4b454
commit
21e029c125
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue