projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca70bf8
)
translate_test: Fix compilation with MSVC.
author
Vinson Lee
<vlee@vmware.com>
Fri, 13 Aug 2010 00:12:56 +0000
(17:12 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 13 Aug 2010 00:12:56 +0000
(17:12 -0700)
src/gallium/tests/unit/translate_test.c
patch
|
blob
|
history
diff --git
a/src/gallium/tests/unit/translate_test.c
b/src/gallium/tests/unit/translate_test.c
index 960c70f2b503228d3dd197a86b0e1bff74fed191..d0946a91a264fc387ecdac7a5f981badfdfe2bca 100644
(file)
--- 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;