Re: Style question: comparison between signed and unsigned?

Werner Almesberger (
Wed, 24 Sep 1997 20:09:08 +0200 (MET DST)

Ulrich Drepper wrote:
> For glibc we had to fix around >1000 files.

That's impressive. And how many bugs did you discover in the process ?

BTW, I agree that requiring many extra casts is a bad idea, because
there's no way of telling if a cast is only intended to emphasize
default semantics or if it should also twist the type compatibility.

I also note that gcc occasionally gets into the habit of encouraging
a certain syntax, e.g. the use of parentheses when mixing &&, ||,
etc. (a good move, IMHO), or the use of parentheses around assignments
in if, while, and such (annoying, IMHO).

- Werner

 / Werner Almesberger, DI-LRC,EPFL,CH /