[libami] more compile warning fixes

* fix 32/64 bit int size printing stuff
* more if braces
This commit is contained in:
Adrian Chadd committed 2022-02-26 11:31:37 -08:00
1 parent 2a05c6f3e4
commit 4162377f10
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -249,7 +249,7 @@ static LONG unpack_rle(unsigned char *src, LONG srclen, char *dst, LONG dstlen,
}
}
if(src != srcn)
fprintf(stderr, "Warning: Left %d bytes unused.\n", srcn-src);
fprintf(stderr, "Warning: Left %d bytes unused.\n", (int) (srcn-src));
return dst-dst0;
}