Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT large integer constants



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.