1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-30 03:11:43 +00:00

fix vs warning

This commit is contained in:
Matthias J. Kannwischer 2019-06-18 16:58:07 +02:00
parent 6aafbd56f2
commit cc94db88fa
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ void PQCLEAN_FIRESABER_CLEAN_cbd(uint16_t *r, const unsigned char *buf) {
int i, j; int i, j;
for (i = 0; i < SABER_N / 4; i++) { 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; d = 0;
for (j = 0; j < 3; j++) { for (j = 0; j < 3; j++) {
d += (t >> j) & 0x249249; d += (t >> j) & 0x249249;

View File

@ -28,7 +28,7 @@ void PQCLEAN_LIGHTSABER_CLEAN_cbd(uint16_t *r, const unsigned char *buf) {
int i, j; int i, j;
for (i = 0; i < SABER_N / 4; i++) { 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; d = 0;
for (j = 0; j < 5; j++) { for (j = 0; j < 5; j++) {
d += (t >> j) & 0x0842108421UL; d += (t >> j) & 0x0842108421UL;