From de547aa5e7911134df15e40e2837a028ba3465e7 Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Wed, 27 Jan 2016 16:44:16 -0800 Subject: [PATCH] fix a gcc Werror --- src/decaf.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/decaf.c b/src/decaf.c index 7335fbd..3822bd1 100644 --- a/src/decaf.c +++ b/src/decaf.c @@ -359,14 +359,10 @@ API_NS(scalar_set_unsigned) ( uint64_t w ) { memset(out,0,sizeof(scalar_t)); - if (sizeof(uint64_t) > sizeof(decaf_word_t)) { - unsigned int i = 0; - for (; ilimb[i] = w; - w >>= 8*sizeof(decaf_word_t); - } - } else { - out->limb[0] = w; + unsigned int i = 0; + for (; ilimb[i] = w; + w >>= (sizeof(uint64_t) > sizeof(decaf_word_t)) ? 8*sizeof(decaf_word_t) : 0; } }