translate_test: Fix compilation with MSVC.

This commit is contained in:
Vinson Lee 2010-08-12 17:12:56 -07:00
parent ca70bf8c9d
commit 26c042c30a
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ static double rand_double()
const double rm = (double)RAND_MAX + 1; const double rm = (double)RAND_MAX + 1;
double div = 1; double div = 1;
double v = 0; double v = 0;
for(unsigned i = 0; i < 4; ++i) unsigned i;
for(i = 0; i < 4; ++i)
{ {
div *= rm; div *= rm;
v += (double)rand() / div; v += (double)rand() / div;