Date: Thu, 01 May 2003 23:03:40 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: "Jacques A. Vidrine" <nectar@FreeBSD.org> Cc: hackers@freebsd.org Subject: Re: incorrect enum warning? Message-ID: <xzpr87ipefn.fsf@flood.ping.uio.no> In-Reply-To: <20030501152022.GC568@wombat.fafoe> (Stefan Farfeleder's message of "Thu, 1 May 2003 17:20:22 %2B0200") References: <xzp7k9a67pf.fsf@flood.ping.uio.no> <20030501150713.GA34992@madman.celabo.org> <20030501152022.GC568@wombat.fafoe>
next in thread | previous in thread | raw e-mail | index | archive | help
Stefan Farfeleder <stefan@fafoe.dyndns.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpr87ipefn.fsf>