diff options
author | Brian Paul <[email protected]> | 2001-03-07 05:06:11 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-03-07 05:06:11 +0000 |
commit | b51b0a847d7e7daaea69f77ab569086ef81c24a2 (patch) | |
tree | 165cf8b023e6c7b1f66dacc46a6c37110ef27ea7 /src/mesa/glapi/glapi.c | |
parent | 249aebdd357d20f6326137c967c6b3923bef6c05 (diff) |
fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots of potential problems
Diffstat (limited to 'src/mesa/glapi/glapi.c')
-rw-r--r-- | src/mesa/glapi/glapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index 90ed9eacc20..82c48ea0658 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -1,4 +1,4 @@ -/* $Id: glapi.c,v 1.49 2001/01/23 23:35:47 brianp Exp $ */ +/* $Id: glapi.c,v 1.50 2001/03/07 05:06:11 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1675,7 +1675,7 @@ _glapi_add_entrypoint(const char *funcName, GLuint offset) { GLint index = get_static_proc_offset(funcName); if (index >= 0) { - return (GLboolean) (index == offset); /* bad offset! */ + return (GLboolean) ((GLuint) index == offset); /* bad offset! */ } } @@ -1783,7 +1783,7 @@ GLint _glapi_get_proc_offset(const char *funcName) { /* search extension functions first */ - GLint i; + GLuint i; for (i = 0; i < NumExtEntryPoints; i++) { if (strcmp(ExtEntryTable[i].Name, funcName) == 0) { return ExtEntryTable[i].Offset; @@ -1803,7 +1803,7 @@ const GLvoid * _glapi_get_proc_address(const char *funcName) { /* search extension functions first */ - GLint i; + GLuint i; for (i = 0; i < NumExtEntryPoints; i++) { if (strcmp(ExtEntryTable[i].Name, funcName) == 0) { return ExtEntryTable[i].Address; |