Commit 7c06749ab8b162e205ad4bd47d8e910435dfdc71

Authored by Loic Dachary
1 parent 87d7e8fb
Exists in master and in 3 other branches v2, v3, wip-18092

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>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/gf.c
... ... @@ -392,7 +392,7 @@ int gf_error_check(int w, int mult_type, int region_type, int divide_type,
392 392 if (mult_type == GF_MULT_COMPOSITE) {
393 393 if (w != 8 && w != 16 && w != 32
394 394 && w != 64 && w != 128) { _gf_errno = GF_E_COMP__W; return 0; }
395   - if ((poly >> (w/2)) != 0) { _gf_errno = GF_E_COMP_PP; return 0; }
  395 + if (w < 128 && (poly >> (w/2)) != 0) { _gf_errno = GF_E_COMP_PP; return 0; }
396 396 if (divide_type != GF_DIVIDE_DEFAULT) { _gf_errno = GF_E_DIVCOMP; return 0; }
397 397 if (arg1 != 2) { _gf_errno = GF_E_COMP_A2; return 0; }
398 398 if (rsse || rnosse) { _gf_errno = GF_E_COMP_SS; return 0; }
... ...