• 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
Re: warning for unsigned parameter, signed argument with NSUInteger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning for unsigned parameter, signed argument with NSUInteger


  • Subject: Re: warning for unsigned parameter, signed argument with NSUInteger
  • From: Drew Lawson <email@hidden>
  • Date: Tue, 14 Apr 2009 10:20:33 -0400

[again, sending to list]

According to Roland King:

> 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?

I've been puzzled by this, but NSUInteger is a signed type:

  #if __LP64__
  typedef long NSUInteger;
  #else
  typedef int NSUInteger;
  endif

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html

--
Drew Lawson            |  It's not enough to be alive
                       |  when your future's been deferred
_______________________________________________

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: Jesper Storm Bache <email@hidden>
References: 
 >warning for unsigned parameter, signed argument with NSUInteger (From: Roland King <email@hidden>)

  • Prev by Date: warning for unsigned parameter, signed argument with NSUInteger
  • Next by Date: Re: warning for unsigned parameter, signed argument with NSUInteger
  • Previous by thread: warning for unsigned parameter, signed argument with NSUInteger
  • Next by thread: Re: warning for unsigned parameter, signed argument with NSUInteger
  • Index(es):
    • Date
    • Thread