From 7d34ba62a770c58fdbd030edff4c21e25aca3a78 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 20 Nov 1992 13:37:49 +0000 Subject: [PATCH] Fix: MkCoercion did not handle error_type --- lang/m2/comp/chk_expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/m2/comp/chk_expr.c b/lang/m2/comp/chk_expr.c index ba1b2364d..3faefddda 100644 --- a/lang/m2/comp/chk_expr.c +++ b/lang/m2/comp/chk_expr.c @@ -72,7 +72,7 @@ MkCoercion(pnd, tp) if (nd_tp == tp || nd_tp->tp_fund == T_STRING /* Why ??? */) return; nd_tp = BaseType(nd_tp); - if (nd->nd_class == Value) { + if (nd->nd_class == Value && nd->nd_type != error_type && tp != error_type) { if (nd_tp->tp_fund == T_REAL) { switch(tp->tp_fund) { case T_REAL: -- 2.34.1