pike.git
/
src
/
pike_types.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/pike_types.cmod:11614:
push_finished_type(mixed_type_string); free_type(res); } else { /* More arguments to check. */ push_finished_type(res); free_type(res); push_type(T_NOT); } res = pop_unfinished_type(); }
-
} else if ((flags & CALL_NOT_LAST_ARG) &&
-
(fun_type->car->type == T_MANY)) {
+
} else if (
!fun_type->car ||
+
(
(fun_type->car->type != T_FUNCTION) &&
+
(fun_type->car->type != T_MANY)) ||
+
((
flags & CALL_NOT_LAST_ARG) &&
+
(fun_type->car->type == T_MANY))
)
{
/* The next argument might match. */ add_ref(fun_type); res = fun_type; } } break; case PIKE_T_TYPE: /* FIXME: Check that the cast is valid. */ type_stack_mark();