summaryrefslogtreecommitdiffstats
path: root/logotool/uncompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'logotool/uncompress.c')
-rw-r--r--logotool/uncompress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/logotool/uncompress.c b/logotool/uncompress.c
index b3e19dd..72b1fdd 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");