Browse Source

falcon: conversion warning

master
John M. Schanck 4 years ago
parent
commit
1caa0cfeff
2 changed files with 6 additions and 2 deletions
  1. +3
    -1
      crypto_sign/falcon-1024/clean/codec.c
  2. +3
    -1
      crypto_sign/falcon-512/clean/codec.c

+ 3
- 1
crypto_sign/falcon-1024/clean/codec.c View File

@@ -444,7 +444,9 @@ PQCLEAN_FALCON1024_CLEAN_comp_decode(
}
}
x[u] = (int16_t) m;
if (s) x[u] = -x[u];
if (s) {
x[u] = (int16_t) -x[u];
}
}
return v;
}


+ 3
- 1
crypto_sign/falcon-512/clean/codec.c View File

@@ -444,7 +444,9 @@ PQCLEAN_FALCON512_CLEAN_comp_decode(
}
}
x[u] = (int16_t) m;
if (s) x[u] = -x[u];
if (s) {
x[u] = (int16_t) -x[u];
}
}
return v;
}


Loading…
Cancel
Save