• 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: Use of long long's in a Cocoa program?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of long long's in a Cocoa program?


  • Subject: Re: Use of long long's in a Cocoa program?
  • From: Clark Cox <email@hidden>
  • Date: Fri, 12 Nov 2004 08:48:12 -0500

On Fri, 12 Nov 2004 05:23:25 -0800, George Lawrence Storm
<email@hidden> wrote:
> When I write the following test line:
>
> long long int testLongLong = 1099511627776;
>
> An attempt to compile generates the warning:
> "integer constant is too large for "long" type"
>
> What do I need to do to generate a "long long int" variable?

To silence that warning, just do this:

long long int testLongLong = 1099511627776LL;

Notice the 'LL' at the end of the constant, that tells the compiler to
make that literal of the 'long long' type. Similarly, use 'ULL' for
unsigned long long.



--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Use of long long's in a Cocoa program? (From: George Lawrence Storm <email@hidden>)

  • Prev by Date: Re: Use of long long's in a Cocoa program?
  • Next by Date: Re: Use of long long's in a Cocoa program?
  • Previous by thread: Re: Use of long long's in a Cocoa program?
  • Next by thread: Re: Use of long long's in a Cocoa program?
  • Index(es):
    • Date
    • Thread