Mesa (mesa_7_6_branch): prog/tests: Fix MSVC build.

Vinson Lee vlee at kemper.freedesktop.org
Thu Dec 3 15:25:02 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 791b7546876e72dcbcc012a855df7f610d777297
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=791b7546876e72dcbcc012a855df7f610d777297

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Oct 16 11:36:09 2009 +0100

prog/tests: Fix MSVC build.
(cherry picked from commit 60b6c7458319ff01ecdd9d1650d526ac8f75e194)

---

 progs/tests/invert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/tests/invert.c b/progs/tests/invert.c
index 63099fb..3bc97a4 100644
--- a/progs/tests/invert.c
+++ b/progs/tests/invert.c
@@ -128,7 +128,7 @@ static void Init( void )
 {
    const char * const ver_string = (const char * const)
        glGetString( GL_VERSION );
-   const float ver = strtof( ver_string, NULL );
+   const float ver = strtod( ver_string, NULL );
 
 
    printf("GL_RENDERER = %s\n", (char *) glGetString(GL_RENDERER));



More information about the mesa-commit mailing list