[m-dev.] diff: fix C type error in std_util.m

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Feb 5 17:48:26 AEDT 2001


For both main and release branches...

----------

Estimated hours taken: 0.25

library/std_util.m:
	Add a cast to fix a type error that was causing a
	gcc warning/lcc error in non-gc grades.

Workspace: /home/venus/fjh/ws-venus/mercury
Index: library/std_util.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/std_util.m,v
retrieving revision 1.214.2.3
diff -u -d -r1.214.2.3 std_util.m
--- library/std_util.m	2001/01/15 00:48:59	1.214.2.3
+++ library/std_util.m	2001/02/05 06:46:24
@@ -996,7 +996,7 @@
 	will_not_call_mercury,
 "
 #ifndef CONSERVATIVE_GC
-	MR_sol_hp = SolutionsHeapPtr;
+	MR_sol_hp = (MR_Word *) SolutionsHeapPtr;
 #endif
 ").
 

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