Re: Style question: comparison between signed and unsigned?

Werner Almesberger (almesber@lrc.di.epfl.ch)
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   werner.almesberger@lrc.di.epfl.ch /
/_IN_R_133__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/