• 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
OT large integer constants
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT large integer constants


  • Subject: OT large integer constants
  • From: email@hidden
  • Date: Wed, 28 May 2008 10:24:41 +0200

hi everyone

as i am writing some 64-bit test code i want to check if
a certain result equals a certain number like:

if(mymicro1.microdata()==3048117485400){
    b=0;
    }

the constant '3048117485400' however is rejected by gcc with the error mess
integer contstant too large for type, on the net i found that i should write


3048117485400ULL
of
3048117485400LL

but this results in the error
use of C99 long long integer constant

what am i to do if i want to keep maximum portability?

--
met vriendelijke groeten
perry winkel

http://www.perry7.nl
http://www.myspace.com/dehufters

_______________________________________________
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


  • Follow-Ups:
    • Re: OT large integer constants
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Re: I'm new to Xcode, and . . .
  • Next by Date: Serial performance problem
  • Previous by thread: Re: I'm new to Xcode, and . . .
  • Next by thread: Re: OT large integer constants
  • Index(es):
    • Date
    • Thread