Fix printf format warning. Remove leading space from positive value.
This commit is contained in:
parent
1352435076
commit
dd17790576
3 changed files with 3 additions and 3 deletions
|
@ -243,7 +243,7 @@ size_t unpack(uint8_t *packed, uint8_t *unpacked) {
|
||||||
printf("Backref (rotate) : %i\n", methoduse[5]);
|
printf("Backref (rotate) : %i\n", methoduse[5]);
|
||||||
printf("Backref (reverse): %i\n", methoduse[6]);
|
printf("Backref (reverse): %i\n", methoduse[6]);
|
||||||
|
|
||||||
printf("\nCompressed size: % zd bytes\n", inpos);
|
printf("\nCompressed size: %u bytes\n", inpos);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return (size_t)outpos;
|
return (size_t)outpos;
|
||||||
|
|
2
exhal.c
2
exhal.c
|
@ -52,7 +52,7 @@ int main (int argc, char **argv) {
|
||||||
fseek(outfile, 0, SEEK_SET);
|
fseek(outfile, 0, SEEK_SET);
|
||||||
fwrite((const void*)unpacked, 1, outputsize, outfile);
|
fwrite((const void*)unpacked, 1, outputsize, outfile);
|
||||||
|
|
||||||
printf("Uncompressed size: % zd bytes\n", outputsize);
|
printf("Uncompressed size: %zd bytes\n", outputsize);
|
||||||
|
|
||||||
fclose(infile);
|
fclose(infile);
|
||||||
fclose(outfile);
|
fclose(outfile);
|
||||||
|
|
2
inhal.c
2
inhal.c
|
@ -76,7 +76,7 @@ int main (int argc, char **argv) {
|
||||||
fseek(infile, 0, SEEK_END);
|
fseek(infile, 0, SEEK_END);
|
||||||
inputsize = ftell(infile);
|
inputsize = ftell(infile);
|
||||||
|
|
||||||
printf("Uncompressed size: % zd bytes\n", inputsize);
|
printf("Uncompressed size: %zd bytes\n", inputsize);
|
||||||
|
|
||||||
if (inputsize > DATA_SIZE) {
|
if (inputsize > DATA_SIZE) {
|
||||||
printf("Error: File must be a maximum of 65,536 bytes!\n");
|
printf("Error: File must be a maximum of 65,536 bytes!\n");
|
||||||
|
|
Loading…
Reference in a new issue