I think I understand what the problem is and the fix, but what does the < 
following the opening quote signify?

Boyd


On Aug 28, 2013, at 1:30 PM, Tom Davie <tom.da...@gmail.com> wrote:

> 
> On 28 Aug 2013, at 22:26, Dave <d...@looktowindward.com> wrote:
> 
>> Hi,
>> 
>> I am getting the following warning 
>> 
>> warning: format specifies type 'unsigned short' but the argument has type 
>> 'int' [-Wformat]
>> 
>> on this statement:
>> 
>> NSCharacterSet *stopCharacters = [NSCharacterSet 
>> characterSetWithCharactersInString:[NSString stringWithFormat:@"< 
>> \t\n\r%C%C%C%C", 0x0085, 0x000C, 0x2028, 0x2029]];
>> 
>> What is the best way to fix this?
> 
> The type of integer literals in C is “int” by default.  If you want them to 
> be shorts (or unsigned, as is the bigger issue in this case), you must cast 
> them either explicitly (by adding the casts in this expression), or 
> implicitly, by assigning the littorals to a variable of the desired type.
> 
> Tom Davie
> 
> 
> _______________________________________________
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/bcollier%40mail.sdsu.edu
> 
> This email sent to bcoll...@mail.sdsu.edu


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to