summaryrefslogtreecommitdiff
path: root/nbtheory.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-19 05:25:20 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-19 05:25:20 +0000
commit62c13600169db651d3167f1d759668de1d3c408f (patch)
treea98ea1632bdcdc452c845eff0d4e762f9d830c50 /nbtheory.cpp
parent44b8725c034573acb819b667137568a335be070a (diff)
downloadcryptopp-62c13600169db651d3167f1d759668de1d3c408f.tar.gz
fix for loop scoping
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@110 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'nbtheory.cpp')
-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)