From 5956b76b28e80a49abd7409520282edc5e11dfc0 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 19 Nov 2006 21:36:29 +0000 Subject: [PATCH] fixed g++ warning --- lib/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/png.c b/lib/png.c index f114e91..f517151 100644 --- a/lib/png.c +++ b/lib/png.c @@ -883,7 +883,7 @@ void writePNG(char*filename, unsigned char*data, int width, int height) } datalen2 = datalen3; - data2 = malloc(datalen2); + data2 = (U8*)malloc(datalen2); if((ret = compress (data2, &datalen2, data3, datalen3)) != Z_OK) { fprintf(stderr, "zlib error in pic %d\n", ret); -- 1.7.10.4