mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 16:10:09 +01:00
translate_test: Fix compilation with MSVC.
This commit is contained in:
parent
ca70bf8c9d
commit
26c042c30a
1 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,8 @@ static double rand_double()
|
|||
const double rm = (double)RAND_MAX + 1;
|
||||
double div = 1;
|
||||
double v = 0;
|
||||
for(unsigned i = 0; i < 4; ++i)
|
||||
unsigned i;
|
||||
for(i = 0; i < 4; ++i)
|
||||
{
|
||||
div *= rm;
|
||||
v += (double)rand() / div;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue