summaryrefslogtreecommitdiffstats
path: root/logotool
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-06-23 17:39:33 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-06-23 17:39:33 +0200
commit027a6d9a18b8767969127ffc1c4a734fec4b840b (patch)
treeea5d137bb5e15e3d818032cb4ed7798de7c33026 /logotool
parent58c0dbe2753753e2eff5e27f98453aa8a020235f (diff)
download0xFFFF-027a6d9a18b8767969127ffc1c4a734fec4b840b.tar.bz2
Fix compilation warnings
Diffstat (limited to 'logotool')
-rw-r--r--logotool/uncompress.c4
1 files changed, 2 insertions, 2 deletions
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");