Usual arithmetic conversions
ajw
ajw at donk.UUCP
Thu Jun 1 08:03:10 AEST 1989
In article <13396 at haddock.ima.isc.com>, karl at haddock.ima.isc.com (Karl Heuer) writes:
> In article <308 at donk.UUCP> ajw at donk.UUCP (ajw) writes:
> >This took a few merry hours to find:
> > if (hairy_unsigned_expression >= 0) ...
>
> Is this because (a) you don't use lint, (b) you don't pay attention to the
> warning it produces on this, or (c) there were so many lint warnings that it
> took hours to find the right one?
Ahem! In this case, the first, actually (working program, hadn't changed a line
of code, etc.etc.) I am roundly castigated; I have broken the first commandment
(UT version, not OT); I am a worm, and no man; a byword and a laughing stock.
Anyway - when I _did_ run lint on this function, it not only told me about the
unsigned comparison, but it called me a degenerate!! I mean, I don't mind being
scolded by _Walking_ lints, but PROGRAMS fer Chrissake?
Colon Hyphen RightParen.
> Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint
-- Alan Waldock, just offering individual opinions while happening to work at
Intel Corp, M/S HF2-37, 5200 NE Elam Young Pkwy, Hillsboro, Oregon 97124-6497
ajw at aus.hf.intel.com ...uunet!littlei!intelhf!aus!ajw "Live malloc or die"
More information about the Comp.lang.c
mailing list