Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!olivea!oliveb!amdahl!lamont From: lamont@uts.amdahl.com (Duane Richard LaMont) Newsgroups: comp.lang.c Subject: Re: One more point regarding = and == (more flamage) Message-ID: <14Cq01yU4e8X00@amdahl.uts.amdahl.com> Date: 31 Mar 91 04:34:12 GMT References: <1991Mar26.184245.3538@chinet.chi.il.us> <11563@dog.ee.lbl.gov> <3555@inews.intel.com> <15634@smoke.brl.mil> Reply-To: lamont@amdahl.uts.amdahl.com (Duane Richard LaMont) Organization: Amdahl Corporation, Sunnyvale CA Lines: 12 In article <15634@smoke.brl.mil> Doug Gwyn writes: >>toupper.c: while ( (int) (c = getchar()) != EOF ) > >I hope you noticed that there is a bug there. I give up. What's the bug? I gave it the benefit of the doubt and assumed that 'c' was already an int and that the cast was redundant. Rick LaMont