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

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Dec 11 03:45:41 AEDT 1999


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,
                 (const Word *) MR_TYPE_CTOR_LAYOUT_EQUIV_TYPE((Word *)
                         entry_value), lower_limit, upper_limit);
             break;

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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