aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/numbertheory
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-13 23:35:05 +0000
committerlloyd <[email protected]>2009-11-13 23:35:05 +0000
commit9ea67516fc88984c865582622de3bea0cd5cbc8b (patch)
tree6bbe1e7cfd261df70df3e91d6100930922e173f8 /src/math/numbertheory
parentd9dd962ed735285a259c7f44e704932f3ddb74b4 (diff)
Make `struct mapping tests[]` non-static in miller_rabin_test_iterations
to work around gcc bug 42010
Diffstat (limited to 'src/math/numbertheory')
-rw-r--r--src/math/numbertheory/numthry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/numbertheory/numthry.cpp b/src/math/numbertheory/numthry.cpp
index 448681333..5e36288ff 100644
--- a/src/math/numbertheory/numthry.cpp
+++ b/src/math/numbertheory/numthry.cpp
@@ -20,7 +20,7 @@ u32bit miller_rabin_test_iterations(u32bit bits, bool verify)
{
struct mapping { u32bit bits; u32bit verify_iter; u32bit check_iter; };
- static const mapping tests[] = {
+ const mapping tests[] = {
{ 50, 55, 25 },
{ 100, 38, 22 },
{ 160, 32, 18 },