aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-09-25 14:15:37 +0200
committerSimon Warta <[email protected]>2015-09-25 14:15:37 +0200
commit5bd01b4d02094772d14d64a82b7aa3796d1acdf9 (patch)
tree5299e8d4031907f43a2c716cc3b3937424cda2f1 /src
parentdd743cef685c232ff8b981fec0f01bd8532c2c76 (diff)
parent1e59c4492314cda2d91c5b06dd447bc27e026e2b (diff)
Merge pull request #273 from webmaster128/avoid-signed-overflow-warning
Remove warning: assuming signed overflow does not occur
Diffstat (limited to 'src')
-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;
}