swrast: s/GLint/GLuint/ to silence MSVC signed/unsigned comparison warning
authorBrian Paul <brianp@vmware.com>
Sat, 7 Jan 2012 21:16:27 +0000 (14:16 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 7 Jan 2012 21:16:27 +0000 (14:16 -0700)
src/mesa/swrast/s_context.c

index 924612578e29f473e10432dd0619479cf9f6d9c8..d9cd9703dba95a12469a653d691b8e0af21b00d2 100644 (file)
@@ -718,9 +718,9 @@ _swrast_CreateContext( struct gl_context *ctx )
    GLuint i;
    SWcontext *swrast = (SWcontext *)CALLOC(sizeof(SWcontext));
 #ifdef _OPENMP
-   const GLint maxThreads = omp_get_max_threads();
+   const GLuint maxThreads = omp_get_max_threads();
 #else
-   const GLint maxThreads = 1;
+   const GLuint maxThreads = 1;
 #endif
 
    if (SWRAST_DEBUG) {