Re: Style question: comparison between signed and unsigned?

Theodore Y. Ts'o (tytso@MIT.EDU)
Fri, 26 Sep 1997 14:57:44 -0400

Date: 25 Sep 1997 20:51:00 +0200
From: (Kai Henningsen)

Unfortunately, the C standard says that you MUST do an unsigned
comparision (if the signed type isn't larger than the unsigned one, as in
the above example).

Given that some people were talking about making changes to the POSIX
standard library calls (instead of changing GCC's warning behaviour),
isn't it fair game to talk about changing the behaviour of the ANSI C
standard so that in some cases sizeof() returns a signed int instead? :-)

- Ted