fix clang-tidy complaint about falcon (#242)

See https://circleci.com/gh/PQClean/PQClean/7991
This commit is contained in:
Sebastian 2019-10-16 02:23:33 -04:00 committed by Matthias J. Kannwischer
parent abe2a5aa2c
commit 298dd2cf22
4 changed files with 6 additions and 6 deletions

View File

@ -538,7 +538,7 @@ fpr_expm_p63(fpr x, fpr ccs) {
};
uint64_t z, y;
unsigned u;
size_t u;
uint32_t z0, z1, y0, y1;
uint64_t a, b;

View File

@ -2275,8 +2275,8 @@ mkgauss(RNG_CONTEXT *rng, unsigned logn) {
v = 0;
r = get_rng_u64(rng);
r &= ~((uint64_t)1 << 63);
for (k = 1; k < (sizeof gauss_1024_12289)
/ (sizeof gauss_1024_12289[0]); k ++) {
for (k = 1; k < (uint32_t)((sizeof gauss_1024_12289)
/ (sizeof gauss_1024_12289[0])); k ++) {
uint32_t t;
t = (uint32_t)((r - gauss_1024_12289[k]) >> 63) ^ 1;

View File

@ -538,7 +538,7 @@ fpr_expm_p63(fpr x, fpr ccs) {
};
uint64_t z, y;
unsigned u;
size_t u;
uint32_t z0, z1, y0, y1;
uint64_t a, b;

View File

@ -2275,8 +2275,8 @@ mkgauss(RNG_CONTEXT *rng, unsigned logn) {
v = 0;
r = get_rng_u64(rng);
r &= ~((uint64_t)1 << 63);
for (k = 1; k < (sizeof gauss_1024_12289)
/ (sizeof gauss_1024_12289[0]); k ++) {
for (k = 1; k < (uint32_t)((sizeof gauss_1024_12289)
/ (sizeof gauss_1024_12289[0])); k ++) {
uint32_t t;
t = (uint32_t)((r - gauss_1024_12289[k]) >> 63) ^ 1;