On Wed, 22 Dec 2004 14:25:14 +0000
Pete French <[EMAIL PROTECTED]> wrote:

> > The type of a decimal integer constant without any suffix is the first
> > of 'int', 'long', 'long long' in which the constant can be represented.
> 
> It is ? Well, you learn something new every day I guess! I stand
> corrected in that case. Appologies.
> 
> > (For C89 it was the first of 'int', 'long', 'unsigned long')
> 
> ...and before that ? Did this behaviour change at the end of the 80's - I
> don't actually recall seeing it on any compilers after 88 or so I have
> to admit.

        Getting -1 is a bug even in K&R C, unless long is 16 bits :)

-- 
C:>WIN                                      |   Directable Mirror Arrays
The computer obeys and wins.                | A better way to focus the sun
You lose and Bill collects.                 |    licences available see
                                            |    http://www.sohara.org/

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to