From cc94db88fa2b1a01b1914358b322346c89be0ce3 Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Tue, 18 Jun 2019 16:58:07 +0200 Subject: [PATCH] fix vs warning --- crypto_kem/firesaber/clean/cbd.c | 2 +- crypto_kem/lightsaber/clean/cbd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto_kem/firesaber/clean/cbd.c b/crypto_kem/firesaber/clean/cbd.c index 0eddfa91..cca885a1 100644 --- a/crypto_kem/firesaber/clean/cbd.c +++ b/crypto_kem/firesaber/clean/cbd.c @@ -28,7 +28,7 @@ void PQCLEAN_FIRESABER_CLEAN_cbd(uint16_t *r, const unsigned char *buf) { int i, j; for (i = 0; i < SABER_N / 4; i++) { - t = load_littleendian(buf + 3 * i, 3); + t = (uint32_t) load_littleendian(buf + 3 * i, 3); d = 0; for (j = 0; j < 3; j++) { d += (t >> j) & 0x249249; diff --git a/crypto_kem/lightsaber/clean/cbd.c b/crypto_kem/lightsaber/clean/cbd.c index f6ebe4d7..cb0d7312 100644 --- a/crypto_kem/lightsaber/clean/cbd.c +++ b/crypto_kem/lightsaber/clean/cbd.c @@ -28,7 +28,7 @@ void PQCLEAN_LIGHTSABER_CLEAN_cbd(uint16_t *r, const unsigned char *buf) { int i, j; for (i = 0; i < SABER_N / 4; i++) { - t = load_littleendian(buf + 5 * i, 5); + t = (uint32_t) load_littleendian(buf + 5 * i, 5); d = 0; for (j = 0; j < 5; j++) { d += (t >> j) & 0x0842108421UL;