Bug#749659: audacity + wxWidgets 3.0 — Proposing patch

Benjamin Drung bdrung at debian.org
Sat Aug 30 22:22:05 UTC 2014


Am Sonntag, den 31.08.2014, 00:05 +0200 schrieb Martin Steghöfer:
> Hi Olly!
> 
> 
> El 30/08/14 a les 18:58, Olly Betts ha escrit:
> > The amended code here assumes sizeof(size_t) == sizeof(long long) - that's not
> > true on all architectures (both i386 and armel have 4 vs 8, for example).
> 
> True that. I should have kept that in mind, I've seen the problem 
> several times in other contexts: There is no printf format specifier 
> that matches the size of the "size_t" type on all platforms. So casting 
> it to something more "C-standard" is the only way to go, like you propose.

The C99 standard allows printing size_t with "%zu", but Microsoft Visual
Studio needs "%Iu" instead [1].

[1] http://msdn.microsoft.com/en-us/library/vstudio/tcxf1dw6.aspx

-- 
Benjamin Drung
Debian & Ubuntu Developer



More information about the pkg-multimedia-maintainers mailing list