Re: How to fix warning?
Re: How to fix warning?
- Subject: Re: How to fix warning?
- From: "Stephen J. Butler" <email@hidden>
- Date: Wed, 28 Aug 2013 21:05:12 -0500
Are those really always constant? Why not:
NSCharacterSet *stopCharacters = [NSCharacterSet
characterSetWithCharactersInString:@"< \t\n\r\x85\x0C\u2028\u2029"];
On Wed, Aug 28, 2013 at 3:26 PM, Dave <email@hidden> 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?
>
> Thanks a lot
> Dave
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden