summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2014-09-17 09:26:14 +0200
committerLoic Dachary <loic@dachary.org>2014-09-17 10:08:37 +0200
commit7c06749ab8b162e205ad4bd47d8e910435dfdc71 (patch)
tree5b405043ba6f5937fa6e3785a123798112dd3f95
parent87d7e8fbb08205cb739235cfb5524c85e1d884c2 (diff)
downloadgf-complete-7c06749ab8b162e205ad4bd47d8e910435dfdc71.tar.gz
disable gf_error_check test that requires >> 64
Because >> 64 does not have a defined behavior. Signed-off-by: Loic Dachary <loic-201408@dachary.org>
-rw-r--r--src/gf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gf.c b/src/gf.c
index 2c232ec..10c9b3c 100644
--- a/src/gf.c
+++ b/src/gf.c
@@ -392,7 +392,7 @@ int gf_error_check(int w, int mult_type, int region_type, int divide_type,
if (mult_type == GF_MULT_COMPOSITE) {
if (w != 8 && w != 16 && w != 32
&& w != 64 && w != 128) { _gf_errno = GF_E_COMP__W; return 0; }
- if ((poly >> (w/2)) != 0) { _gf_errno = GF_E_COMP_PP; return 0; }
+ if (w < 128 && (poly >> (w/2)) != 0) { _gf_errno = GF_E_COMP_PP; return 0; }
if (divide_type != GF_DIVIDE_DEFAULT) { _gf_errno = GF_E_DIVCOMP; return 0; }
if (arg1 != 2) { _gf_errno = GF_E_COMP_A2; return 0; }
if (rsse || rnosse) { _gf_errno = GF_E_COMP_SS; return 0; }