summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests')
-rw-r--r--src/gallium/tests/unit/translate_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/tests/unit/translate_test.c b/src/gallium/tests/unit/translate_test.c
index 960c70f2b50..d0946a91a26 100644
--- a/src/gallium/tests/unit/translate_test.c
+++ b/src/gallium/tests/unit/translate_test.c
@@ -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;