Fixed infinite loop

This commit is contained in:
ceriel 1993-06-24 15:48:46 +00:00
parent 042d7b2275
commit eaa9dab166

View 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;