Date: Wed, 22 Dec 2004 15:57:54 +0100 From: Erik Trulsson <ertr1013@student.uu.se> To: Pete French <petefrench@ticketswitch.com> Cc: colin.percival@wadham.ox.ac.uk Subject: Re: Will there be a 5.3.1? Message-ID: <20041222145754.GA52270@falcon.midgard.homeip.net> In-Reply-To: <E1Ch7QQ-000GlO-MB@dilbert.firstcallgroup.co.uk> References: <20041222141450.GA51987@falcon.midgard.homeip.net> <E1Ch7QQ-000GlO-MB@dilbert.firstcallgroup.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 22, 2004 at 02:25:14PM +0000, Pete French 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. Before that it was just the first of 'int' and 'long'. (According to Harbison/Steele: C:A Reference Manual) > > > No doubt, but if it does the compilers are buggy. > > Apparently so. It seems I've spent the last 18 years or so believing an > untyped integer constant was always of type 'int' when it wasn't true. Well, > maybe I will be less anal about adding 'L' to the ends of my constants from > now on. > > -pcf. -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041222145754.GA52270>