Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!littlei!donk!ajw From: ajw@donk.UUCP (ajw) Newsgroups: comp.lang.c Subject: Re: Usual arithmetic conversions Keywords: sizeof unsigned ouch Message-ID: <311@donk.UUCP> Date: 31 May 89 22:03:10 GMT References: <308@donk.UUCP> <13396@haddock.ima.isc.com> Organization: DTE, Intel Corporation; Hillsboro, OR Lines: 24 In article <13396@haddock.ima.isc.com>, karl@haddock.ima.isc.com (Karl Heuer) writes: > In article <308@donk.UUCP> ajw@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@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@aus.hf.intel.com ...uunet!littlei!intelhf!aus!ajw "Live malloc or die"