fix order of constructor parameters in subtract in java

This commit is contained in:
jacekpoz 2024-05-10 22:03:17 +02:00
parent eed1eff28d
commit 4e952bd117
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -53,7 +53,7 @@ public class GF implements IGF {
if (this.value < rhs.getValue()) {
return new GF(this.characteristic, this.characteristic - (rhs.getValue() - this.value));
}
return new GF((this.value - rhs.getValue()), this.characteristic);
return new GF(this.characteristic, (this.value - rhs.getValue()));
}
/*