diff options
author | Simon Warta <[email protected]> | 2015-09-08 23:32:39 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-09-25 14:15:21 +0200 |
commit | 1e59c4492314cda2d91c5b06dd447bc27e026e2b (patch) | |
tree | 5299e8d4031907f43a2c716cc3b3937424cda2f1 /src/lib | |
parent | dd743cef685c232ff8b981fec0f01bd8532c2c76 (diff) |
Remove warning: assuming signed overflow does not occur
warning: assuming signed overflow does not occur when reducing constant
in comparison [-Wstrict-overflow]
cond1 = r0.get_degree() <= break_deg - 1;
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/pubkey/mce/polyn_gf2m.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/mce/polyn_gf2m.cpp b/src/lib/pubkey/mce/polyn_gf2m.cpp index 9b3366757..70404c57c 100644 --- a/src/lib/pubkey/mce/polyn_gf2m.cpp +++ b/src/lib/pubkey/mce/polyn_gf2m.cpp @@ -512,7 +512,7 @@ std::pair<polyn_gf2m, polyn_gf2m> polyn_gf2m::eea_with_coefficients( const polyn else { /* t odd */ - cond1 = r0.get_degree() <= break_deg - 1; + cond1 = r0.get_degree() < break_deg; cond2 = u0.get_degree() < break_deg - 1; cond1 &= cond2; } |