[m-dev.] for review: fix bug in deep_copy()

David Glen JEFFERY dgj at cs.mu.OZ.AU
Mon Dec 13 15:06:24 AEDT 1999


On 11-Dec-1999, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> DJ, could you please review this?
> 
> Estimated hours taken: 0.5
> 
> runtime/mercury_deep_copy_body.h:
> 	Fix a bug: one of the calls to copy_arg() was
> 	passing the arguments in the wrong order.
> 
> Index: mercury_deep_copy_body.h
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/runtime/mercury_deep_copy_body.h,v
> retrieving revision 1.15
> diff -u -d -u -r1.15 mercury_deep_copy_body.h
> --- mercury_deep_copy_body.h	1999/12/09 04:42:27	1.15
> +++ mercury_deep_copy_body.h	1999/12/10 16:27:46
> @@ -201,7 +201,7 @@
>              break;
>  
>          case MR_TYPECTOR_REP_EQUIV: 
> -            new_data = copy_arg(NULL, data_ptr, type_info, NULL,
> +            new_data = copy_arg(NULL, data_ptr, NULL, type_info,

That looks right now, thanks.


dgj
-- 
David Jeffery (dgj at cs.mu.oz.au) | If your thesis is utterly vacuous
PhD student,                    | Use first-order predicate calculus.
Dept. of Comp. Sci. & Soft. Eng.|     With sufficient formality
The University of Melbourne     |     The sheerist banality
Australia                       | Will be hailed by the critics: "Miraculous!"
                                |     -- Anon.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list