From 3fa6dde2a8d94d379a496574c5d645d931da5b7a Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Fri, 21 Apr 2023 17:06:49 +0200 Subject: [PATCH] make gnu compiler happy --- galois_field.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galois_field.hh b/galois_field.hh index 3d188dc..1db8d6f 100644 --- a/galois_field.hh +++ b/galois_field.hh @@ -325,7 +325,7 @@ struct GaloisFieldReference static const TYPE N = Q - 1; static_assert(M <= 8 * sizeof(TYPE), "TYPE not wide enough"); static_assert(Q == (POLY & ~(Q - 1)), "POLY not of degree Q"); - static const TYPE P = POLY; + static const TYPE P = TYPE(POLY); TYPE v; GaloisFieldReference() = default; explicit GaloisFieldReference(TYPE v) : v(v)