From 6fce9cf1b9bbecdbd5106db46ffcfcbc27cdb4cd Mon Sep 17 00:00:00 2001 From: Douglas Stebila Date: Mon, 15 Apr 2019 09:48:56 -0400 Subject: [PATCH] Undo breaking compiler warning fix --- crypto_kem/ntruhps4096821/clean/packq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto_kem/ntruhps4096821/clean/packq.c b/crypto_kem/ntruhps4096821/clean/packq.c index d31934bb..c0ffe4cc 100644 --- a/crypto_kem/ntruhps4096821/clean/packq.c +++ b/crypto_kem/ntruhps4096821/clean/packq.c @@ -14,8 +14,8 @@ void PQCLEAN_NTRUHPS4096821_CLEAN_poly_Sq_tobytes(unsigned char *r, const poly * void PQCLEAN_NTRUHPS4096821_CLEAN_poly_Sq_frombytes(poly *r, const unsigned char *a) { int i; for (i = 0; i < NTRU_PACK_DEG / 2; i++) { - r->coeffs[2 * i + 0] = (unsigned char) ((a[3 * i + 0] >> 0) | (((uint16_t)a[3 * i + 1] & 0x0f) << 8)); - r->coeffs[2 * i + 1] = (unsigned char) ((a[3 * i + 1] >> 4) | (((uint16_t)a[3 * i + 2] & 0xff) << 4)); + r->coeffs[2 * i + 0] = (a[3 * i + 0] >> 0) | (((uint16_t)a[3 * i + 1] & 0x0f) << 8); + r->coeffs[2 * i + 1] = (a[3 * i + 1] >> 4) | (((uint16_t)a[3 * i + 2] & 0xff) << 4); } }