Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 May 2003 14:05:20 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Dag-Erling Smorgrav <des@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   RE: PERFORCE change 30311 for review
Message-ID:  <XFMail.20030501140520.jhb@FreeBSD.org>
In-Reply-To: <200305011611.h41GBbq4068524@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 01-May-2003 Dag-Erling Smorgrav wrote:
> http://perforce.freebsd.org/chv.cgi?CH=30311
> 
> Change 30311 by des@des.at.des.thinksec.com on 2003/05/01 09:11:15
> 
>       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. :)

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030501140520.jhb>