C++ fixes, mostly casts (Stephane Conversy)

This commit is contained in:
Brian Paul
2005-12-06 15:41:43 +00:00
parent d5179613d5
commit 9580179dfb
14 changed files with 49 additions and 46 deletions

View File

@@ -1213,7 +1213,7 @@ Parse_PrintInstruction(struct parse_state *parseState,
for (len = 0; str[len] != '\''; len++) /* find closing quote */
;
parseState->pos += len + 1;
msg = _mesa_malloc(len + 1);
msg = (GLubyte*) _mesa_malloc(len + 1);
_mesa_memcpy(msg, str, len);
msg[len] = 0;