Re: wrong value for LONG_MAX (9223372036854775807 rather than 2147483647) on macintosh 10.6 ?
Re: wrong value for LONG_MAX (9223372036854775807 rather than 2147483647) on macintosh 10.6 ?
- Subject: Re: wrong value for LONG_MAX (9223372036854775807 rather than 2147483647) on macintosh 10.6 ?
- From: Clark Cox <email@hidden>
- Date: Thu, 3 Dec 2009 20:19:36 -0800
On Thu, Dec 3, 2009 at 4:11 PM, CSights <email@hidden> wrote:
> Hi,
> It appears that on macintosh 10.6 LONG_MAX has the same value as LLONG_MAX
> (both are 9223372036854775807).
There's nothing wrong with that value. When building for 64-bit, long
is a 64-bit type.
> According to http://home.att.net/~jackklein/c/inttypes.html#problems
> LONG_MAX should be 2147483647.
No. That table lists the *minimum* ranges that the types must have
(i.e. LONG_MAX cannot be less than 2147483647; there is nothing wrong
with it being greater than that value).
--
Clark S. Cox III
email@hidden
_______________________________________________
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