aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-22 22:07:06 +0000
committerlloyd <[email protected]>2009-12-22 22:07:06 +0000
commit92e3d10b3345a4c6b96e84305113597b34909f80 (patch)
tree200488102d95bee85721950ce90cf3b4b4a04b11
parent97b9b7f2fc6aa16dcf97443e960729b90a7a64bd (diff)
Remove extraneous check in low_zero_bits
-rw-r--r--src/math/numbertheory/numthry.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/math/numbertheory/numthry.cpp b/src/math/numbertheory/numthry.cpp
index ab51b75a3..0740ea21b 100644
--- a/src/math/numbertheory/numthry.cpp
+++ b/src/math/numbertheory/numthry.cpp
@@ -76,8 +76,6 @@ u32bit miller_rabin_test_iterations(u32bit bits, bool verify)
*/
u32bit low_zero_bits(const BigInt& n)
{
- if(n.is_negative() || n.is_zero()) return 0;
-
u32bit low_zero = 0;
if(n.is_positive() && n.is_nonzero())