[m-rev.] trivial diff: fix a couple of minor bugs

Mark Brown dougl at cs.mu.OZ.AU
Sat Apr 13 03:02:33 AEST 2002


On 13-Apr-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 12-Apr-2002, Mark Brown <dougl at cs.mu.OZ.AU> wrote:
> > runtime/mercury_ho_call.c:
> > 	Fix what appears to be a cut and paste error.
> ...
> > -		MR_restore_transient_registers();			\
> > +		MR_save_transient_registers();				\
> 
> Test case?

I doubt that this bug is observable at all.  Nevertheless, the intent of
the above piece of code is to save the transient registers before returning
from the generic compare C function.  There is little point in restoring
the transient registers just before returning from a C function.

Cheers,
Mark.

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list