summaryrefslogtreecommitdiff
path: root/src/gallium/tests/unit/translate_test.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-08-12 17:12:56 -0700
committerVinson Lee <vlee@vmware.com>2010-08-12 17:12:56 -0700
commit26c042c30aa3a2ec7eaf1a2b766bc4fd2bfcdb84 (patch)
tree783fddcb09e218ac3dd7e90ebe7254ebd86d52d7 /src/gallium/tests/unit/translate_test.c
parentca70bf8c9d95de4cade7760eb0cc6e0d82d4f9d7 (diff)
translate_test: Fix compilation with MSVC.
Diffstat (limited to 'src/gallium/tests/unit/translate_test.c')
-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 960c70f2b5..d0946a91a2 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;