aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartijnv2001-08-28 14:24:02 +0000
committermartijnv2001-08-28 14:24:02 +0000
commit3aff5539b761e00d4d5a1ca5425a4370e74fd632 (patch)
tree2995454de1bbf488f676c25c8ec26f3f73a847d5
parentrenamed list,tuple,array and string types as in predef.icl (diff)
bug fix: count of let bindings was wrong which caused convertcases to crash
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@682 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
-rw-r--r--frontend/convertDynamics.icl3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/convertDynamics.icl b/frontend/convertDynamics.icl
index c5f7ed0..511cb0f 100644
--- a/frontend/convertDynamics.icl
+++ b/frontend/convertDynamics.icl
@@ -926,7 +926,7 @@ where
// ...TIJDELIJK
*/
/* Sjaak ... */
- (let_info_ptr, ci) = let_ptr 2 ci
+ (let_info_ptr, ci) = let_ptr (2 + length let_binds) ci
(case_info_ptr, ci) = bool_case_ptr ci
/* ... Sjaak */
@@ -1243,6 +1243,7 @@ bool_case_ptr ci=:{ci_expr_heap}
let_ptr :: !Int !*ConversionInfo -> (ExprInfoPtr, !*ConversionInfo)
let_ptr nr_of_binds ci=:{ci_expr_heap}
# (expr_info_ptr, ci_expr_heap) = newPtr (EI_LetType (repeatn nr_of_binds empty_attributed_type)) ci_expr_heap
+ # (expr_info_ptr, ci_expr_heap) = newPtr (EI_LetType (repeatn nr_of_binds empty_attributed_type)) ci_expr_heap
= (expr_info_ptr, {ci & ci_expr_heap = ci_expr_heap})
/* Sjaak ... */