[libami] more compile warning fixes

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

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;
}