From 4e952bd117284203983550d6fdee29bd2dc8240a Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 10 May 2024 22:03:17 +0200 Subject: [PATCH] fix order of constructor parameters in subtract in java --- lab3/zad2/app/src/main/java/pl/jacekpoz/GF.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lab3/zad2/app/src/main/java/pl/jacekpoz/GF.java b/lab3/zad2/app/src/main/java/pl/jacekpoz/GF.java index 5fab315..1544927 100644 --- a/lab3/zad2/app/src/main/java/pl/jacekpoz/GF.java +++ b/lab3/zad2/app/src/main/java/pl/jacekpoz/GF.java @@ -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())); } /*