diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-19 05:25:20 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-07-19 05:25:20 +0000 |
commit | 62c13600169db651d3167f1d759668de1d3c408f (patch) | |
tree | a98ea1632bdcdc452c845eff0d4e762f9d830c50 /nbtheory.cpp | |
parent | 44b8725c034573acb819b667137568a335be070a (diff) | |
download | cryptopp-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.cpp | 3 |
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) |