aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/mce/polyn_gf2m.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-09-08 23:32:39 +0200
committerSimon Warta <[email protected]>2015-09-25 14:15:21 +0200
commit1e59c4492314cda2d91c5b06dd447bc27e026e2b (patch)
tree5299e8d4031907f43a2c716cc3b3937424cda2f1 /src/lib/pubkey/mce/polyn_gf2m.cpp
parentdd743cef685c232ff8b981fec0f01bd8532c2c76 (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/pubkey/mce/polyn_gf2m.cpp')
-rw-r--r--src/lib/pubkey/mce/polyn_gf2m.cpp2
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;
}