Date: Thu, 01 May 2003 20:12:55 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: John Baldwin <jhb@FreeBSD.org> Cc: Perforce Change Reviews <perforce@freebsd.org> Subject: Re: PERFORCE change 30311 for review Message-ID: <xzpd6j2r0wo.fsf@flood.ping.uio.no> In-Reply-To: <XFMail.20030501140520.jhb@FreeBSD.org> (John Baldwin's message of "Thu, 01 May 2003 14:05:20 -0400 (EDT)") References: <XFMail.20030501140520.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin <jhb@FreeBSD.org> writes: > On 01-May-2003 Dag-Erling Smorgrav wrote: >> Some compilers (gcc at least) promote the integer literal 0x80000000 >> to long, while enums are required to fit in an int. To avoid the >> warning this causes, use (-0x7fffffff - 1) instead of 0x80000000. > You could just use 0x40000000. :) No, I couldn't. DES -- Dag-Erling Smorgrav - des@ofug.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpd6j2r0wo.fsf>