summaryrefslogtreecommitdiffstats
path: root/progs/tests/crossbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests/crossbar.c')
-rw-r--r--progs/tests/crossbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/tests/crossbar.c b/progs/tests/crossbar.c
index 3dd21372f9a..2988e209200 100644
--- a/progs/tests/crossbar.c
+++ b/progs/tests/crossbar.c
@@ -145,7 +145,7 @@ static void Init( void )
{
const char * const ver_string = (const char * const)
glGetString( GL_VERSION );
- float ver = strtof( ver_string, NULL );
+ float ver = strtod( ver_string, NULL );
GLint tex_units;
GLint temp[ 256 ];
@@ -174,7 +174,7 @@ static void Init( void )
exit(1);
}
- printf("\nAll %u squares should be the same color.\n", NUM_TESTS + 1);
+ printf("\nAll %lu squares should be the same color.\n", (unsigned long) NUM_TESTS + 1);
(void) memset( temp, 0x00, sizeof( temp ) );
glBindTexture( GL_TEXTURE_2D, 1 );