incorrect enum warning?

Dag-Erling Smorgrav des at ofug.org
Thu May 1 14:03:45 PDT 2003


Stefan Farfeleder <stefan at 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 at ofug.org


More information about the freebsd-hackers mailing list