Assorted casts to silence g++ warnings.

This commit is contained in:
Brian Paul
2003-09-19 15:38:15 +00:00
parent 74c33393b4
commit e4fcea2e06
15 changed files with 51 additions and 47 deletions

View File

@@ -673,10 +673,10 @@ _glapi_add_entrypoint(const char *funcName, GLuint offset)
if (ExtEntryTable[i].Offset == offset) {
return GL_TRUE; /* offsets match */
}
else if (ExtEntryTable[i].Offset == ~0
else if (ExtEntryTable[i].Offset == (GLuint) ~0
&& offset < DISPATCH_TABLE_SIZE) {
/* need to patch-up the dispatch code */
if (offset != ~0) {
if (offset != (GLuint) ~0) {
fill_in_entrypoint_offset(ExtEntryTable[i].Address, offset);
ExtEntryTable[i].Offset = offset;
}