From db7843c5eb5417d7a4488333542941ae52547336 Mon Sep 17 00:00:00 2001 From: Joost Rijneveld Date: Tue, 16 Apr 2019 10:35:08 +0200 Subject: [PATCH] SPHINCS: make integer promotion explicit --- crypto_sign/sphincs-shake256-128f-simple/clean/wots.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto_sign/sphincs-shake256-128f-simple/clean/wots.c b/crypto_sign/sphincs-shake256-128f-simple/clean/wots.c index 4431986d..ac8b54d1 100644 --- a/crypto_sign/sphincs-shake256-128f-simple/clean/wots.c +++ b/crypto_sign/sphincs-shake256-128f-simple/clean/wots.c @@ -68,7 +68,7 @@ static void base_w(unsigned int *output, const size_t out_len, bits += 8; } bits -= SPX_WOTS_LOGW; - output[out] = (total >> bits) & (SPX_WOTS_W - 1); + output[out] = (unsigned int)((total >> bits) & (SPX_WOTS_W - 1)); out++; } }