SInt64 and UInt64 problems with large values
SInt64 and UInt64 problems with large values
- Subject: SInt64 and UInt64 problems with large values
- From: Ken Tozier <email@hidden>
- Date: Sat, 2 Apr 2005 04:00:35 -0500
In lieu of using "long long" and "unsigned long long" in my code, I'm
trying to use the more compact "SInt64" and "UInt64" both of which the
compiler seems to be aware of , but when I try to give UInt64 a large
constant hex value such as 0xFFFFFFFFFFFFFFFF, the complier complains
that "integer constant is too large for "long" type." I searched for
the definition of UInt64 and found it in MacTypes.h where it is defined
as "typedef unsigned long long UInt64" so why does the compiler not
allow the maximum hex value? Is there some undocumented upper limit to
long long values?
Thanks
Ken
_______________________________________________
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