On 10/24/11 12:12, Julien Cristau wrote:
On Sun, Oct 23, 2011 at 16:53:59 -0700, Jeremy Huddleston wrote:
Why not change the format string to use %ld for sizeof() instead of casting?
That would be %zu.
Which I don't think we've started using yet in Xorg, since we've assumed more
about the C99 compatibility of our compilers than of the platform C libraries.
As best as I know, casting is the most portable way to make sure the argument
sizes match the format string for now, until we're ready to demand C99
compliance of the printf() implementation in the platform libraries.
--
-Alan Coopersmith- [email protected]
Oracle Solaris Platform Engineering: X Window System
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel