PERFORCE change 30311 for review

Dag-Erling Smorgrav des at ofug.org
Thu May 1 11:13:01 PDT 2003


John Baldwin <jhb at 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 at ofug.org


More information about the p4-projects mailing list