From owner-freebsd-stable@FreeBSD.ORG Wed Dec 22 14:57:57 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0230016A4CE for ; Wed, 22 Dec 2004 14:57:57 +0000 (GMT) Received: from av1-1-sn4.m-sp.skanova.net (av1-1-sn4.m-sp.skanova.net [81.228.10.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE5AD43D1F for ; Wed, 22 Dec 2004 14:57:55 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av1-1-sn4.m-sp.skanova.net (Postfix, from userid 502) id 3206F37F28; Wed, 22 Dec 2004 15:57:55 +0100 (CET) Received: from smtp4-2-sn4.m-sp.skanova.net (smtp4-2-sn4.m-sp.skanova.net [81.228.10.180]) by av1-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id 1FD7537E45 for ; Wed, 22 Dec 2004 15:57:55 +0100 (CET) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp4-2-sn4.m-sp.skanova.net (Postfix) with SMTP id C93CD37E46 for ; Wed, 22 Dec 2004 15:57:54 +0100 (CET) Received: (qmail 52295 invoked by uid 1001); 22 Dec 2004 14:57:54 -0000 Date: Wed, 22 Dec 2004 15:57:54 +0100 From: Erik Trulsson To: Pete French Message-ID: <20041222145754.GA52270@falcon.midgard.homeip.net> Mail-Followup-To: Pete French , brett@lariat.org, colin.percival@wadham.ox.ac.uk, stable@freebsd.org References: <20041222141450.GA51987@falcon.midgard.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: brett@lariat.org cc: stable@freebsd.org cc: colin.percival@wadham.ox.ac.uk Subject: Re: Will there be a 5.3.1? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 14:57:57 -0000 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. -- Erik Trulsson ertr1013@student.uu.se