[FFmpeg-devel] [PATCH] replace %td by more standard %zd
Måns Rullgård
mans
Wed Sep 30 18:11:49 CEST 2009
Michael Niedermayer <michaelni at gmx.at> writes:
> On Wed, Sep 30, 2009 at 03:17:12PM +0200, Reimar D?ffinger wrote:
>> Hello,
>> personally I am more in favour of casting to int and using %i, but at
>> least %zd is better supported it seems (e.g. Haiku compiler).
>
> if it is better suppotrted then ok
It's not a matter of better, it's a matter of correct. The z modifier
means the value is a size_t, while the t modifier means ptrdiff_t.
These types are no more likely to be compatible than any other integer
types.
If this is merely a warning with libc still doing the right thing, we
should simply ignore this warning.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list