Port Mesa to build on a P64 platform (e.g., Win64). P64 platforms
use 64-bit pointers and 32-bit longs. So, operations like casting pointers to unsigned long and back to pointer won't work. glheader.h now includes files to define uintptr_t, which should instead be used for this sort of operation. It is an integer type that is the same size as a pointer.
This commit is contained in:
@@ -373,7 +373,7 @@ Peek_Token(struct parse_state *parseState, GLubyte *token)
|
||||
parseState->pos += (-i);
|
||||
return GL_FALSE;
|
||||
}
|
||||
len = _mesa_strlen((const char *) token);
|
||||
len = (GLint)_mesa_strlen((const char *) token);
|
||||
parseState->pos += (i - len);
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user