diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-27 15:01:56 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-27 15:01:56 +0000 |
commit | 07b947df850d2949862e438c3f10006bb8c99b4c (patch) | |
tree | 73cae09092e8f7deacc84aa66d1a302aedd0ba27 | |
parent | ba7b4d614816990be37216fdc1836faed2f73caf (diff) | |
download | ioquake3-aero-07b947df850d2949862e438c3f10006bb8c99b4c.tar.gz ioquake3-aero-07b947df850d2949862e438c3f10006bb8c99b4c.zip |
fix warning about cast from integer to pointer
git-svn-id: svn://svn.icculus.org/quake3/trunk@378 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r-- | code/unix/linux_qgl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/unix/linux_qgl.c b/code/unix/linux_qgl.c index 3a21e58..241e566 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 |