mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 15:39:07 +00:00
Ignore pointless clang-tidy warning. (#237)
* Ignore pointless clang-tidy warning. It wants you to write type suffixes for integers using uppercase. Let's just disable this warning. https://clang.llvm.org/extra/clang-tidy/checks/readability-uppercase-literal-suffix.html * Clean up bugprone-narrowing-conversion
This commit is contained in:
parent
bdb42f1911
commit
993803e02d
@ -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: '*'
|
WarningsAsErrors: '*'
|
||||||
HeaderFilterRegex: '.*'
|
HeaderFilterRegex: '.*'
|
||||||
AnalyzeTemporaryDtors: false
|
AnalyzeTemporaryDtors: false
|
||||||
|
@ -953,7 +953,7 @@ sampler(void *ctx, fpr mu, fpr isigma) {
|
|||||||
* centered on 0.
|
* centered on 0.
|
||||||
*/
|
*/
|
||||||
z0 = gaussian0_sampler(&spc->p);
|
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;
|
z = b + ((b << 1) - 1) * z0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -953,7 +953,7 @@ sampler(void *ctx, fpr mu, fpr isigma) {
|
|||||||
* centered on 0.
|
* centered on 0.
|
||||||
*/
|
*/
|
||||||
z0 = gaussian0_sampler(&spc->p);
|
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;
|
z = b + ((b << 1) - 1) * z0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user