From 50a80e7304cea25104cec215da7c061a4998e6bd Mon Sep 17 00:00:00 2001 From: dscho Date: Wed, 4 Feb 2004 07:59:03 +0000 Subject: make examples g++ compileable, thanks to Juan Jose Costello --- examples/colourmaptest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/colourmaptest.c') diff --git a/examples/colourmaptest.c b/examples/colourmaptest.c index 9a86197..156781c 100644 --- a/examples/colourmaptest.c +++ b/examples/colourmaptest.c @@ -21,7 +21,7 @@ int main(int argc,char** argv) bytes[128*3+2]=0; server->colourMap.data.bytes=bytes; - server->frameBuffer=malloc(256*256); + server->frameBuffer=(char*)malloc(256*256); for(i=0;i<256*256;i++) server->frameBuffer[i]=(i/256); -- cgit v1.2.1