strange effects with enumerated types
Chris Torek
chris at mimsy.UUCP
Thu Oct 20 10:45:49 AEST 1988
In article <14065 at mimsy.UUCP> I noted that the bug was in the following
few lines from src/lib/mip/pftn.c:
> if( scl == class ){
> if( p->offset!= strucoff++ ) break;
> psave( idp );
> }
> break;
but then added
>... I *think* that it should return after calling psave(), except that
>I am not sure that, if p->offset != strucoff++, strucoff should have
>been incremented.
Of course not! The code should read
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 at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list