From owner-freebsd-hackers@FreeBSD.ORG Thu May 1 14:03:44 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 B87C637B401; Thu, 1 May 2003 14:03:44 -0700 (PDT) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8450143FCB; Thu, 1 May 2003 14:03:43 -0700 (PDT) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 8B03A530E; Thu, 1 May 2003 23:03:41 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Jacques A. Vidrine" From: Dag-Erling Smorgrav Date: Thu, 01 May 2003 23:03:40 +0200 In-Reply-To: <20030501152022.GC568@wombat.fafoe> (Stefan Farfeleder's message of "Thu, 1 May 2003 17:20:22 +0200") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3 References: <20030501150713.GA34992@madman.celabo.org> <20030501152022.GC568@wombat.fafoe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 21:03:45 -0000 Stefan Farfeleder writes: > Because 0x80000000 > INT_MAX on 32-Bit architectures, 0x80000000 has > type unsigned. But enumeration constants always have type int, that's > why you're getting this warning. but 0x80000000 == INT_MIN on 32-bit two's complement systems... DES -- Dag-Erling Smorgrav - des@ofug.org