diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 1999-12-16 08:54:22 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 1999-12-16 08:54:22 +0000 |
commit | c02db13e00b4cee3869d2a0e3cb3d38959aea050 (patch) | |
tree | 688f0e3cc9510e2e4970175229b50f3b95e73879 /progs/demos | |
parent | acd181021da35f3cfa92ba4511ed20f430a01bc2 (diff) |
added a cast to malloc call
Diffstat (limited to 'progs/demos')
-rw-r--r-- | progs/demos/stex3d.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/progs/demos/stex3d.c b/progs/demos/stex3d.c index 2a35ca161f..114ba9a24f 100644 --- a/progs/demos/stex3d.c +++ b/progs/demos/stex3d.c @@ -1,4 +1,4 @@ -/* $Id: stex3d.c,v 1.2 1999/09/17 12:27:01 brianp Exp $ */ +/* $Id: stex3d.c,v 1.3 1999/12/16 08:54:22 brianp Exp $ */ /*----------------------------- * stex3d.c GL example of the mesa 3d-texture extention to simulate procedural @@ -17,6 +17,9 @@ /* * $Log: stex3d.c,v $ + * Revision 1.3 1999/12/16 08:54:22 brianp + * added a cast to malloc call + * * Revision 1.2 1999/09/17 12:27:01 brianp * silenced some warnings * @@ -230,7 +233,7 @@ void create3Dtexture() int tmp; printf("creating 3d textures...\n"); - voxels = (unsigned char *) malloc((4*tex_width*tex_height*tex_depth)); + voxels = (unsigned char *) malloc((size_t)(4*tex_width*tex_height*tex_depth)); vp=voxels; for (i=0;i<tex_width;i++){ vec[0]=i; |