From 027a6d9a18b8767969127ffc1c4a734fec4b840b Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 23 Jun 2012 17:39:33 +0200 Subject: Fix compilation warnings --- logotool/uncompress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'logotool/uncompress.c') diff --git a/logotool/uncompress.c b/logotool/uncompress.c index 4d0599f..7fb8b10 100644 --- a/logotool/uncompress.c +++ b/logotool/uncompress.c @@ -71,7 +71,7 @@ int uncompress_image(char *srcf, char *dstf) src = malloc ( fsize ); dst = malloc ( width*height*2 ); deof = dst+width*height*2; - if ((int)src == -1 || (int)dst == -1 ) { + if (src == (void *)-1 || dst == (void *)-1 ) { printf("Cannot malloc\n"); return 1; } @@ -105,7 +105,7 @@ int uncompress_image(char *srcf, char *dstf) } } } - fprintf(stderr, "Output Size: %d\n",dst2-dst); + fprintf(stderr, "Output Size: %lld\n",(long long int)(dst2-dst)); if ((dst2-dst)!=(width*height*2)) fprintf(stderr, "failed?\n"); -- cgit v1.2.3