GCC 3.3.1, new warnings with <limits>

M. Warner Losh imp at bsdimp.com
Sun Jul 13 11:11:36 PDT 2003

In message: <20030713152154.GA96653 at stack.nl>
            Jilles Tjoelker <jilles at stack.nl> writes:
: The compiler moans about (T)(-1) >= 0 as well. Is the assumption that
: (unsigned type)(-1) is never zero valid?

yes.  There are no known machines where -1 == 0 for types of different
signs.  Further, the C standard says that it must behave as if it is a
two's complement machine, and I think that C++ says so too.


More information about the freebsd-current mailing list