From e4fcea2e06571b71a85b4f100c95d866a82f7c19 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 19 Sep 2003 15:38:15 +0000 Subject: Assorted casts to silence g++ warnings. --- src/mesa/glapi/glapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/glapi/glapi.c') diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index 85330dd6674..cfa2f8f628e 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -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; } -- cgit v1.2.3