Re: Use of long long's in a Cocoa program?
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