Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!portal!motcad!jtc From: jtc@motcad.portal.com (J.T. Conklin) Newsgroups: comp.lang.c Subject: Re: Funny mistake Message-ID: <1991Mar15.180449.13100@motcad.portal.com> Date: 15 Mar 91 18:04:49 GMT References: <1991Mar13.125034.2825@st-andy.uucp> <13337@helios.TAMU.EDU> <8148@rsiatl.Dixie.Com> Distribution: comp Organization: Computer Signal Inc., San Ramon, California Lines: 15 In article <8148@rsiatl.Dixie.Com> stan@Dixie.Com (Stan Brown) writes: >>"if (a = b)" instead of "if (a == b)". > > Some compilers will report this as a suspicous occurence. The > one I think I remember this on is Zortech, but I have yet to > see a UNIX compiler complain about it, The lint on my mchine > doesn't complain eithe. I wonder if anybody's does ? Gimpel's FlexeLint: if (a = b) foo.c 5 Info 720: Boolean test of assignment -- J.T. Conklin jtc@motcad.portal.com, ...!portal!motcad!jtc