BUILD: sample: fix format warning on 32-bit archs in sample_conv_be2dec_check()
The sizeof() was printed as a long but it's just an unsigned on some
32-bit platforms, hence the format warning. No backport is needed, as
this arrived in 2.5 with commit 40ca09c7b
("MINOR: sample: Add be2dec
converter").
This commit is contained in:
parent
4f5485bfad
commit
c5d0fc9b9f
|
@ -2070,7 +2070,7 @@ static int sample_conv_be2dec_check(struct arg *args, struct sample_conv *conv,
|
|||
const char *file, int line, char **err)
|
||||
{
|
||||
if (args[1].data.sint <= 0 || args[1].data.sint > sizeof(unsigned long long)) {
|
||||
memprintf(err, "chunk_size out of [1..%ld] range (%lld)", sizeof(unsigned long long), args[1].data.sint);
|
||||
memprintf(err, "chunk_size out of [1..%u] range (%lld)", (uint)sizeof(unsigned long long), args[1].data.sint);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue