From eed1eff28d53a83a4ff1952ae568a0bfc01a7414 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 10 May 2024 22:03:05 +0200 Subject: [PATCH] apply modulo on value in GF constructor 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 a43f9b5..5fab315 100644 --- a/lab3/zad2/app/src/main/java/pl/jacekpoz/GF.java +++ b/lab3/zad2/app/src/main/java/pl/jacekpoz/GF.java @@ -18,7 +18,7 @@ public class GF implements IGF { public GF(final long characteristic, final long value) { this.characteristic = characteristic; - this.value = value; + this.value = value % this.characteristic; } /*