r378 - trunk/code/unix

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Nov 27 10:01:57 EST 2005


Author: ludwig
Date: 2005-11-27 10:01:56 -0500 (Sun, 27 Nov 2005)
New Revision: 378

Modified:
   trunk/code/unix/linux_qgl.c
Log:
fix warning about cast from integer to pointer


Modified: trunk/code/unix/linux_qgl.c
===================================================================
--- trunk/code/unix/linux_qgl.c	2005-11-27 08:37:38 UTC (rev 377)
+++ trunk/code/unix/linux_qgl.c	2005-11-27 15:01:56 UTC (rev 378)
@@ -3074,7 +3074,7 @@
 		#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 @@
 			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




More information about the quake3-commits mailing list