diff --git a/.clang-tidy b/.clang-tidy index d141fd9f..5189c670 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,5 @@ --- -Checks: '*,-llvm-header-guard,-hicpp-*,-readability-function-size,-google-readability-todo,-readability-magic-numbers,-cppcoreguidelines-avoid-magic-numbers,-readability-isolate-declaration' +Checks: '*,-llvm-header-guard,-hicpp-*,-readability-function-size,-google-readability-todo,-readability-magic-numbers,-cppcoreguidelines-avoid-magic-numbers,-readability-isolate-declaration,-readability-uppercase-literal-suffix' WarningsAsErrors: '*' HeaderFilterRegex: '.*' AnalyzeTemporaryDtors: false diff --git a/crypto_sign/falcon-1024/clean/sign.c b/crypto_sign/falcon-1024/clean/sign.c index 9307206e..937d6163 100644 --- a/crypto_sign/falcon-1024/clean/sign.c +++ b/crypto_sign/falcon-1024/clean/sign.c @@ -953,7 +953,7 @@ sampler(void *ctx, fpr mu, fpr isigma) { * centered on 0. */ z0 = gaussian0_sampler(&spc->p); - b = prng_get_u8(&spc->p) & 1; + b = (int)prng_get_u8(&spc->p) & 1; z = b + ((b << 1) - 1) * z0; /* diff --git a/crypto_sign/falcon-512/clean/sign.c b/crypto_sign/falcon-512/clean/sign.c index 9fd0fc78..2b84aea5 100644 --- a/crypto_sign/falcon-512/clean/sign.c +++ b/crypto_sign/falcon-512/clean/sign.c @@ -953,7 +953,7 @@ sampler(void *ctx, fpr mu, fpr isigma) { * centered on 0. */ z0 = gaussian0_sampler(&spc->p); - b = prng_get_u8(&spc->p) & 1; + b = (int)prng_get_u8(&spc->p) & 1; z = b + ((b << 1) - 1) * z0; /*