From 64025e68f09bc18d9c4a6db7b00603d0112f7017 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Sun, 27 Nov 2005 15:01:56 +0000 Subject: [PATCH] fix warning about cast from integer to pointer --- code/unix/linux_qgl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/unix/linux_qgl.c b/code/unix/linux_qgl.c index 3a21e58b..241e5661 100644 --- a/code/unix/linux_qgl.c +++ b/code/unix/linux_qgl.c @@ -3074,7 +3074,7 @@ qboolean QGL_Init( const char *dllname ) #if USE_SDL_VIDEO if (GLimp_sdl_init_video() == qfalse) return qfalse; - glw_state.OpenGLLib = (void*) ((SDL_GL_LoadLibrary(dllname) == -1) ? 0 : 1); + glw_state.OpenGLLib = (void*)(long)((SDL_GL_LoadLibrary(dllname) == -1) ? 0 : 1); #else glw_state.OpenGLLib = dlopen( dllname, RTLD_LAZY|RTLD_GLOBAL ); #endif @@ -3092,7 +3092,7 @@ qboolean QGL_Init( const char *dllname ) Q_strcat(fn, sizeof(fn), dllname); #if USE_SDL_VIDEO - glw_state.OpenGLLib = (void*) ((SDL_GL_LoadLibrary(fn) == -1) ? 0 : 1); + glw_state.OpenGLLib = (void*)(long)((SDL_GL_LoadLibrary(fn) == -1) ? 0 : 1); #else glw_state.OpenGLLib = dlopen( fn, RTLD_LAZY ); #endif