aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorjohnvg2002-02-28 10:32:55 +0000
committerjohnvg2002-02-28 10:32:55 +0000
commitd3a3ceb977096dd9165c94cf2f41fd791ae9adbf (patch)
treeae1177034c77bfb99115aab6f0e8ba59fc23a2ac /frontend
parentfix bug: report error when the same constructor or member (diff)
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
Diffstat (limited to 'frontend')
-rw-r--r--frontend/check.icl2
1 files changed, 1 insertions, 1 deletions
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