The codec field is of type uint64_t, which is an unsigned long on many
64 bit platforms (LP64), but 32 bit platforms and LLP64 platforms cannot
use the l modifier for correct output.
Cast to uintmax_t for portable j support.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
coder2->codec != _7Z_SPARC) {
archive_set_error(&a->archive,
ARCHIVE_ERRNO_MISC,
- "Unsupported filter %lx for %lx",
- coder2->codec, coder1->codec);
+ "Unsupported filter %jx for %jx",
+ (uintmax_t)coder2->codec,
+ (uintmax_t)coder1->codec);
return (ARCHIVE_FAILED);
}
zip->codec2 = coder2->codec;