Browse Source

fix vs warning

master
Matthias J. Kannwischer 5 years ago
parent
commit
cc94db88fa
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      crypto_kem/firesaber/clean/cbd.c
  2. +1
    -1
      crypto_kem/lightsaber/clean/cbd.c

+ 1
- 1
crypto_kem/firesaber/clean/cbd.c View File

@@ -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;


+ 1
- 1
crypto_kem/lightsaber/clean/cbd.c View File

@@ -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;


Loading…
Cancel
Save