fix for loop scoping

pull/2/head
weidai 2003-07-19 05:25:20 +00:00
parent 4e67d23468
commit 1c6c57b871
1 changed files with 2 additions and 1 deletions

View File

@ -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)