summaryrefslogtreecommitdiff
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-10-29 15:03:14 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-10-29 15:03:14 +0000
commitdec2a4d4b719069c0a306cc51280cacb1b61a18a (patch)
tree2a95828fad9cf480d5e46dd185f9db74274448c9 /src/mesa/glapi
parentd3975341e743b3436a69dedd864ccedc56b0db03 (diff)
added some casts for mallocs (bug 630379)
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/glapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index 8649a5241d..fcdab05e41 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -1,4 +1,4 @@
-/* $Id: glapi.c,v 1.66 2002/10/17 16:29:17 brianp Exp $ */
+/* $Id: glapi.c,v 1.67 2002/10/29 15:03:14 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -546,7 +546,7 @@ generate_entrypoint(GLuint functionOffset)
0xe8, 0x00, 0x00, 0x00, 0x00,
0xff, 0xa0, 0x00, 0x00, 0x00, 0x00
};
- unsigned char *code = malloc(sizeof(insn_template));
+ unsigned char *code = (unsigned char *) malloc(sizeof(insn_template));
unsigned int next_insn;
if (code) {
memcpy(code, insn_template, sizeof(insn_template));
@@ -583,7 +583,7 @@ generate_entrypoint(GLuint functionOffset)
0x01000000 /* nop */
};
#endif
- unsigned int *code = malloc(sizeof(insn_template));
+ unsigned int *code = (unsigned int *) malloc(sizeof(insn_template));
unsigned long glapi_addr = (unsigned long) &_glapi_Dispatch;
if (code) {
memcpy(code, insn_template, sizeof(insn_template));