On Mon, Mar 8, 2010 at 4:04 PM, Greg Parker <gpar...@apple.com> wrote:
> On Mar 8, 2010, at 3:54 PM, Clark Cox wrote:
>> For types smaller than int, there is no need to explicitly cast; the
>> standard guarantees that such values are converted to int (or unsigned
>> int)  implicitly. In fact, the 'h' and 'hh' modifiers are completely
>> redundant and are ignored when passed to printf-like functions
>
> ... unless you're printing signed variables using %x, for one.

If you're printing signed variables using %x, then you're doing it wrong :)
%x requires an unsigned value.


-- 
Clark S. Cox III
clarkc...@gmail.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to