From 013b5a4a6b63fe35f39b51747b29a2646ffd7a3d Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Fri, 5 Feb 2016 17:12:28 -0800 Subject: [PATCH] gcc cleanliness --- src/per_field/f_generic.tmpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/per_field/f_generic.tmpl.c b/src/per_field/f_generic.tmpl.c index c7ebc00..111e76f 100644 --- a/src/per_field/f_generic.tmpl.c +++ b/src/per_field/f_generic.tmpl.c @@ -59,7 +59,7 @@ mask_t gf_deserialize (gf x, const uint8_t serial[SER_BYTES], int with_hibit) { buffer >>= LIMB_PLACE_VALUE(LIMBPERM(i)); scarry = (scarry + x->limb[LIMBPERM(i)] - MODULUS->limb[LIMBPERM(i)]) >> (8*sizeof(word_t)); } - mask_t succ = with_hibit ? -1 : ~gf_hibit(x); + mask_t succ = with_hibit ? -(mask_t)1 : ~gf_hibit(x); return succ & word_is_zero(buffer) & ~word_is_zero(scarry); }