From owner-freebsd-hackers@FreeBSD.ORG Thu May 1 08:43:12 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3D7237B401; Thu, 1 May 2003 08:43:12 -0700 (PDT) Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAD2A43F85; Thu, 1 May 2003 08:43:11 -0700 (PDT) (envelope-from stefan@fafoe.dyndns.org) Received: from wombat.fafoe (wombat.fafoe [192.168.2.102]) by fafoe.dyndns.org (Postfix) with ESMTP id B57754061; Thu, 1 May 2003 17:43:10 +0200 (CEST) Received: by wombat.fafoe (Postfix, from userid 1001) id 3207C5E; Thu, 1 May 2003 17:43:08 +0200 (CEST) Date: Thu, 1 May 2003 17:43:08 +0200 From: Stefan Farfeleder To: "Jacques A. Vidrine" Message-ID: <20030501154307.GD568@wombat.fafoe> Mail-Followup-To: "Jacques A. Vidrine" , hackers@freebsd.org References: <20030501150713.GA34992@madman.celabo.org> <20030501152022.GC568@wombat.fafoe> <20030501152432.GC34992@madman.celabo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030501152432.GC34992@madman.celabo.org> User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org Subject: Re: incorrect enum warning? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 15:43:12 -0000 On Thu, May 01, 2003 at 10:24:32AM -0500, Jacques A. Vidrine wrote: > On Thu, May 01, 2003 at 05:20:22PM +0200, Stefan Farfeleder wrote: > > Because 0x80000000 > INT_MAX on 32-Bit architectures, 0x80000000 has > > You forgot to quote where INT_MAX is defined in the standard. 5.2.4.2.1 Sizes of integer types -- maximum value for an object of type int INT_MAX +32767 // 2^15 - 1 [where 32767 is the smallest legal value for INT_MAX] Regards, Stefan Farfeleder