[m-dev.] Diff: Add type cast in mercury_tabling_macros.h

Warwick Harvey wharvey at cs.monash.edu.au
Tue Jan 11 18:54:51 AEDT 2000


Estimated hours taken: 1

Fix a bug in Zoltan's recent changes to clean up tabling.  This bug caused 
the library to fail to build in non-gc grades.

runtime/mercury_tabling_macros.h:
	Add a type cast in a call to MR_make_permanent().


RCS file: /home/mercury1/repository/mercury/runtime/mercury_tabling_macros.h,
v
retrieving revision 1.1
diff -u -r1.1 mercury_tabling_macros.h
--- runtime/mercury_tabling_macros.h    2000/01/03 08:53:08     1.1
+++ runtime/mercury_tabling_macros.h    2000/01/11 07:46:07
@@ -336,5 +336,6 @@
 #define MR_TABLE_SAVE_ANSWER(table, offset, value, type_info)          \
        do {                                                            \
                (table)->MR_answerblock[offset] =                       \
-                       MR_make_permanent((value), (type_info));        \
+                       MR_make_permanent((value),                      \
+                                       ((Word *) (Word) &type_info));  \
        } while(0)


--------------------------------------------------------------------------
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