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: Rippit the Ogg Frog <email@hidden>
- Date: Thu, 03 Dec 2009 21:57:59 -0800
Sean McBride wrote:
If you want a value of an exact size, use int32_t, uint64_t, etc. The C
language does not guarantee that 'long' (or other basic types) are an
exact size.
They're not so common now, but back in the day there were computers with
36-bit words and 9-byte bytes.
Octal made more sense back then.
Much gnashing of teeth resulted from assumptions about the size of int
in early Mac software. Lightspeed C had 16-bit ints, MPW had 32-bit.
Mike
email@hidden
http://www.oggfrog.com/
_______________________________________________
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