• 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: uint64_t error and architecture targets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uint64_t error and architecture targets


  • Subject: Re: uint64_t error and architecture targets
  • From: Todd Heberlein <email@hidden>
  • Date: Thu, 10 Feb 2011 17:42:21 -0800

On Feb 10, 2011, at 5:36 PM, Clark S. Cox III wrote:

>
> On Feb 10, 2011, at 5:28 PM, Todd Heberlein wrote:
>
>> In C++ code I have a line like:
>>
>> 	uint64_t y = 0xffffffffffffffffUL;
>>
>> This compiles fine when I have the architecture set to "Build Active Architecture Only". But if I uncheck this box, I get an error with the message "Integer constant is too large for 'unsigned long' type."
>
> The "UL" at the end of your literal indicates that you want it to be (unsigned long). On 32-bit, that isn't possible, and that is what the compiler is telling you. Use "ULL".

Ka-ching!!

Thanks!

Todd

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >uint64_t error and architecture targets (From: Todd Heberlein <email@hidden>)
 >Re: uint64_t error and architecture targets (From: "Clark S. Cox III" <email@hidden>)

  • Prev by Date: Re: uint64_t error and architecture targets
  • Next by Date: RE: uint64_t error and architecture targets
  • Previous by thread: Re: uint64_t error and architecture targets
  • Next by thread: RE: uint64_t error and architecture targets
  • Index(es):
    • Date
    • Thread