lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Mar 17, 2006 at 01:45:15PM +0000, Lisa Parratt wrote:
> Dave Dodge wrote:
> >"int" is still allowed to be 16 bits in C99.  The minimum magnitues
> >from section 5.2.4.2.1 (and Annex E):
> >
> >               #define INT_MAX                     +32767
> >               #define INT_MIN                     -32767
> 
> Hmm - never used to be. I'm fairly certain it was defined as 32 bits as 
> the be all and end all at one point.

You're probably thing of POSIX.1, which does change these values to
+2147483647 and -2147483647.

BTW the UNIX standard (which includes POSIX.1) is freely available
online in HTML format at:

  http://www.opengroup.org/onlinepubs/009695399/mindex.html

                                                  -Dave Dodge