commit | bdd15b5749b45929fa642c3e47997f52eb07fbe5 | [log] [tgz] |
---|---|---|
author | Brian Paul <brian.paul@tungstengraphics.com> | Tue May 04 15:11:06 2004 +0000 |
committer | Brian Paul <brian.paul@tungstengraphics.com> | Tue May 04 15:11:06 2004 +0000 |
tree | 103b77f6cd3e845f0816092a7e21a57ec6f98a2c | |
parent | 33ffbd1c58dc8582f67d946f9eb26127e9851a10 [diff] [blame] |
Fix minor warnings found with g++.
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index fb311f9..ae06444 100644 --- a/src/mesa/shader/arbprogparse.c +++ b/src/mesa/shader/arbprogparse.c
@@ -3863,7 +3863,7 @@ /* copy the program string to a null-terminated string */ /* XXX should I check for NULL from malloc()? */ - strz = _mesa_malloc (len + 1); + strz = (GLubyte *) _mesa_malloc (len + 1); _mesa_memcpy (strz, str, len); strz[len] = '\0';