• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
warning for unsigned parameter, signed argument with NSUInteger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

warning for unsigned parameter, signed argument with NSUInteger


  • Subject: warning for unsigned parameter, signed argument with NSUInteger
  • From: Roland King <email@hidden>
  • Date: Tue, 14 Apr 2009 22:03:54 +0800

I have this definition using NSUInteger

	-(id)initWithXExtent:(NSUInteger)xExtent yExtent:(NSUInteger)yExtent;

and I was stupidly calling it like this

	GameBoard *gb = [ [ GameBoard alloc ] initWithXExtent:5 yExtent:-10 ];

and I didn't get a warning and spent 5 minutes trying to figure out why my yExtent was totally screwed up. I'm using -Wall, -Wextra -Winit- self -Wundeclared-selector which normally complains about everything, but not this. NSUInteger is just a typedef isn't it, so this is really unsigned int / int and I was expecting a warning. Have I missed a warning flag or is there some NSUInteger artifact I'm not aware of?



_______________________________________________

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


  • Follow-Ups:
    • Re: warning for unsigned parameter, signed argument with NSUInteger
      • From: "Sean McBride" <email@hidden>
    • Re: warning for unsigned parameter, signed argument with NSUInteger
      • From: Drew Lawson <email@hidden>
  • Prev by Date: Re: typeFromFileExtension in Leopard SDK
  • Next by Date: Re: warning for unsigned parameter, signed argument with NSUInteger
  • Previous by thread: Re: Best way to get a non-repeating random number?
  • Next by thread: Re: warning for unsigned parameter, signed argument with NSUInteger
  • Index(es):
    • Date
    • Thread