PERFORCE change 30311 for review
John Baldwin
jhb at FreeBSD.org
Thu May 1 11:05:21 PDT 2003
On 01-May-2003 Dag-Erling Smorgrav wrote:
> http://perforce.freebsd.org/chv.cgi?CH=30311
>
> Change 30311 by des at 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 at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
More information about the p4-projects
mailing list