Fix compilation warnings
This commit is contained in:
1 parent
58c0dbe275
commit
027a6d9a18
6 files changed
+15
-9
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user