• 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: long long
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: long long


  • Subject: Re: long long
  • From: glenn andreas <email@hidden>
  • Date: Mon, 17 Jan 2005 11:32:55 -0600


On Jan 17, 2005, at 11:25 AM, David Cittadini wrote:

Hi,

I am trying to get long long types to work. If I test long long by the following:

long long value = 64 - 1;
long long value1 = 1000000000;
long long value2 = 10000000000;
long long value3 = 0x1234567812345678;

The compiler warns that the last two definitions are "too large for a long type". That is not right, surely. Is there something special I have to do to get long longs to work?



Because the constants on the right hand side of the "=" are longs, not long longs (and so 10000000000 is too large for a long constant).

Try 10000000000LL



Glenn Andreas                      email@hidden 
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
 _______________________________________________
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: 
 >long long (From: David Cittadini <email@hidden>)

  • Prev by Date: [NSString initWithData: encoding:]
  • Next by Date: Re: [NSString initWithData: encoding:]
  • Previous by thread: long long
  • Next by thread: Re: long long
  • Index(es):
    • Date
    • Thread