Fix compilation warnings

This commit is contained in:
Pali Rohár committed 2012-06-23 17:39:33 +02:00
1 parent 58c0dbe275
commit 027a6d9a18
6 files changed
+15 -9

No files matched your search

+2 -2
View File
@@ -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");