• 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
Re: wrong value for LONG_MAX (9223372036854775807 rather than 2147483647) on macintosh 10.6 ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >wrong value for LONG_MAX (9223372036854775807 rather than 2147483647) on macintosh 10.6 ? (From: CSights <email@hidden>)
 >Re: wrong value for LONG_MAX (9223372036854775807 rather than 2147483647) on macintosh 10.6 ? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: wrong value for LONG_MAX (9223372036854775807 rather than 2147483647) on macintosh 10.6 ?
  • Next by Date: wprintf does not honor "Typecheck calls to printf/scanf" setting
  • Previous by thread: Re: wrong value for LONG_MAX (9223372036854775807 rather than 2147483647) on macintosh 10.6 ?
  • Next by thread: Re: wrong value for LONG_MAX (9223372036854775807 rather than 2147483647) on macintosh 10.6 ?
  • Index(es):
    • Date
    • Thread