Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!uwm.edu!uwvax!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.bugs.4bsd Subject: Re: PCC enum bug Keywords: enum bug C compiler Message-ID: <20046@mimsy.UUCP> Date: 7 Oct 89 15:41:36 GMT References: <5600@portia.Stanford.EDU> <20041@mimsy.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 32 In article <20041@mimsy.UUCP> I posted a fix to pcc, but I forgot to use `-c', and no one else's lines will match mine. So, here it is again, this time made with context. (I will cancel the previous article, but some of you will have already read it.) RCS file: RCS/pftn.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c2 -r1.3 -r1.4 *** /tmp/,RCSt1000933 Sat Oct 7 10:53:12 1989 --- /tmp/,RCSt2000933 Sat Oct 7 10:53:16 1989 *************** *** 218,224 **** case MOE: ! if( scl == class ){ ! if( p->offset!= strucoff++ ) break; psave( idp ); } break; --- 218,225 ---- case MOE: ! if( scl == class && p->offset == strucoff ){ ! strucoff++; psave( idp ); + return; } break; -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@cs.umd.edu Path: uunet!mimsy!chris