summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nbtheory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/nbtheory.cpp b/nbtheory.cpp
index ee015a4..8c2e042 100644
--- a/nbtheory.cpp
+++ b/nbtheory.cpp
@@ -28,7 +28,8 @@ std::vector<word> * NewPrimeTable()
for (unsigned int p=3; p<=s_lastSmallPrime; p+=2)
{
- for (unsigned int j=1; j<testEntriesEnd; j++)
+ unsigned int j;
+ for (j=1; j<testEntriesEnd; j++)
if (p%primeTable[j] == 0)
break;
if (j == testEntriesEnd)