Fixed infinite loop
authorceriel <none@none>
Thu, 24 Jun 1993 15:48:46 +0000 (15:48 +0000)
committerceriel <none@none>
Thu, 24 Jun 1993 15:48:46 +0000 (15:48 +0000)
lang/cem/cemcom.ansi/proto.c

index f50662a..3e236c3 100644 (file)
@@ -402,7 +402,7 @@ call_proto(expp)
        if (left != NILEXPR) {          /* in case of an error */
                register struct type *tp = left->ex_type;
 
-               while (tp && tp->tp_fund != FUNCTION)
+               while (tp && tp->tp_fund != FUNCTION && tp != error_type)
                        tp = tp->tp_up;
                if (tp && tp->tp_proto)
                        pl = tp->tp_proto;