RE: Integer size (fwd)


Subject: RE: Integer size (fwd)
From: Aaron Lehmann (aaronl@vitelus.com)
Date: Mon Jun 05 2000 - 20:46:46 CDT


Back when I used to program on the mac, the default integer size was 16
bits. Just FYI. I think it would be smart to use the UT_*32 macros when
you really want a 32 bit int.

Aaron Lehmann

On Mon, 5 Jun 2000, Mike Meyer wrote:

> James Montgomerie writes:
> > I've heard conflicting reports about this, perhaps someone here will have a
> > copy of the ANSI standard and be able to clarify:
> >
> > Is a long guaranteed to be 32 bits, or is it compiler and platform
> > dependent?
>
> My copy is in storage, but I know this one. Short is at least 16
> bits. Long is at least 32 bits. Int is "the natural size for the
> machine", but can hold a short without losing bits. And yes, there are
> implementations with short smaller than int smaller than long.
>
> <mike
>
>



This archive was generated by hypermail 2b25 : Mon Jun 05 2000 - 20:46:59 CDT