aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-10 15:55:32 +0000
committerlloyd <[email protected]>2008-06-10 15:55:32 +0000
commit4ff9e280f71cf45620246fc1da4144b5aa00efdd (patch)
tree0f1e3e337b2f34aaa773c5f8597778615f9304e5
parent243d0ec646e00da153b656efe9efbf832c3c8680 (diff)
Add braces to avoid confusion (and a GCC 4.3 warning) in nested if/else
-rw-r--r--src/numthry.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/numthry.cpp b/src/numthry.cpp
index 4f74fdc59..2b900e96c 100644
--- a/src/numthry.cpp
+++ b/src/numthry.cpp
@@ -56,10 +56,12 @@ u32bit miller_rabin_test_iterations(u32bit bits, bool verify)
for(u32bit j = 0; tests[j].bits; ++j)
{
if(bits <= tests[j].bits)
+ {
if(verify)
return tests[j].verify_iter;
else
return tests[j].check_iter;
+ }
}
return 2;
}