Mesa (master): translate_test: Fix compilation with MSVC.

Vinson Lee vlee at kemper.freedesktop.org
Fri Aug 13 00:13:38 UTC 2010


Module: Mesa
Branch: master
Commit: 26c042c30aa3a2ec7eaf1a2b766bc4fd2bfcdb84
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=26c042c30aa3a2ec7eaf1a2b766bc4fd2bfcdb84

Author: Vinson Lee <vlee at vmware.com>
Date:   Thu Aug 12 17:12:56 2010 -0700

translate_test: Fix compilation with MSVC.

---

 src/gallium/tests/unit/translate_test.c |    3 ++-
 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 960c70f..d0946a9 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;




More information about the mesa-commit mailing list