From d3a3ceb977096dd9165c94cf2f41fd791ae9adbf Mon Sep 17 00:00:00 2001 From: johnvg Date: Thu, 28 Feb 2002 10:32:55 +0000 Subject: fix bug in computing the conversion table for macros that appear only in the definition module (and not in the implementation module). git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1032 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d --- frontend/check.icl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/check.icl b/frontend/check.icl index 6ca3a3e..3498469 100644 --- a/frontend/check.icl +++ b/frontend/check.icl @@ -1887,7 +1887,7 @@ renumber_icl_module mod_type icl_global_function_range icl_instance_range nr_of_ # dcl_mod = case dcl_mod of dcl_mod=:{dcl_macro_conversions=Yes conversion_table} - # new_macro_conversions = {old_icl_macro_index+local_functions_index_offset \\ old_icl_macro_index<-:conversion_table} + # new_macro_conversions = {if (old_icl_macro_index==(-1)) old_icl_macro_index (old_icl_macro_index+local_functions_index_offset) \\ old_icl_macro_index<-:conversion_table} -> {dcl_mod & dcl_macro_conversions=Yes new_macro_conversions} dcl_mod -> dcl_mod -- cgit v1.2.3