[m-rev.] trivial diff: mercury_trace_alias.c: use MR_assign_structure()

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Jan 10 16:17:12 AEDT 2003


Estimated hours taken: 0.5
Branches: main

trace/mercury_trace_alias.c:
	Work-around a problem with some versions of GCC:
	use MR_assign_structure() rather than an assignment statement.

Workspace: /home/ceres/fjh/mercury
Index: trace/mercury_trace_alias.c
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/mercury_trace_alias.c,v
retrieving revision 1.6
diff -u -d -r1.6 mercury_trace_alias.c
--- trace/mercury_trace_alias.c	6 Mar 2002 14:35:03 -0000	1.6
+++ trace/mercury_trace_alias.c	3 Dec 2002 22:43:42 -0000
@@ -88,7 +88,8 @@
 		MR_free(MR_alias_records[slot].MR_alias_words);
 
 		for (i = slot; i < MR_alias_record_next - 1; i++) {
-			MR_alias_records[slot] = MR_alias_records[slot+1];
+			MR_assign_structure(MR_alias_records[slot],
+				MR_alias_records[slot + 1]);
 		}
 
 		MR_alias_record_next--;

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