Diff: fix cut-and-paste error in private_builtin.m

Warwick Harvey wharvey at cs.monash.edu.au
Tue Dec 1 14:35:29 AEDT 1998


Estimated hours taken: 0.25

library/private_builtin.m:
	Fixed a cut-and-paste bug where
		mercury____Compare___private_builtin__type_info_1_0
	incorrectly referenced unify_input1 and unify_input2 rather than
	compare_input1 and compare_input2 (they are currently defined to
	be the same registers, so the compiled code was still correct).


Index: library/private_builtin.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/private_builtin.m,v
retrieving revision 1.15
diff -u -r1.15 private_builtin.m
--- private_builtin.m	1998/11/24 03:57:47	1.15
+++ private_builtin.m	1998/12/01 03:29:46
@@ -1426,7 +1426,7 @@
 	*/
 	int comp;
 	save_transient_registers();
-	comp = MR_compare_type_info(unify_input1, unify_input2);
+	comp = MR_compare_type_info(compare_input1, compare_input2);
 	restore_transient_registers();
 	compare_output = comp;
 	proceed();





More information about the developers mailing list