From dec2a4d4b719069c0a306cc51280cacb1b61a18a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 29 Oct 2002 15:03:14 +0000 Subject: added some casts for mallocs (bug 630379) --- src/mesa/drivers/glide/fxdd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/glide') diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c index 9b98cdd106..fddd63e440 100644 --- a/src/mesa/drivers/glide/fxdd.c +++ b/src/mesa/drivers/glide/fxdd.c @@ -1,4 +1,4 @@ -/* $Id: fxdd.c,v 1.92 2002/10/04 19:10:10 brianp Exp $ */ +/* $Id: fxdd.c,v 1.93 2002/10/29 15:03:16 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -721,7 +721,7 @@ fxDDInitFxMesaContext(fxMesaContext fxMesa) } fxMesa->state = malloc(FX_grGetInteger(FX_GLIDE_STATE_SIZE)); - fxMesa->fogTable = malloc(FX_grGetInteger(FX_FOG_TABLE_ENTRIES) * + fxMesa->fogTable = (GrFog_t *) malloc(FX_grGetInteger(FX_FOG_TABLE_ENTRIES) * sizeof(GrFog_t)); if (!fxMesa->state || !fxMesa->fogTable) { -- cgit v1.2.3