From f02a5f6cc55fc61229a038ac72edb3ce97cb6950 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 12 Jul 2002 15:54:01 +0000 Subject: Pedantic compiler fixes (Sven Panne) --- progs/demos/readpix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'progs/demos/readpix.c') diff --git a/progs/demos/readpix.c b/progs/demos/readpix.c index 0277a46a03..ec3665008d 100644 --- a/progs/demos/readpix.c +++ b/progs/demos/readpix.c @@ -1,4 +1,4 @@ -/* $Id: readpix.c,v 1.7 2002/05/02 09:17:59 alanh Exp $ */ +/* $Id: readpix.c,v 1.8 2002/07/12 15:54:02 brianp Exp $ */ /* * glReadPixels and glCopyPixels test @@ -219,7 +219,7 @@ Init( GLboolean ciMode ) if (ciMode) { /* Convert RGB image to grayscale */ - GLubyte *indexImage = malloc( ImgWidth * ImgHeight ); + GLubyte *indexImage = (GLubyte *) malloc( ImgWidth * ImgHeight ); GLint i; for (i=0; i