Branch: Tag:

2011-12-09

2011-12-09 20:46:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Type-checker: Send the proper flags to get_first_arg_type().

2498:    if (TYPEOF(Pike_sp[-1]) != PIKE_T_TYPE) {    Pike_error("Bad argument 1 to __get_first_arg_type() expected type.\n");    } -  if (!(res = get_first_arg_type(Pike_sp[-1].u.type, 0))) { +  if (!(res = get_first_arg_type(Pike_sp[-1].u.type, CALL_NOT_LAST_ARG)) && +  !(res = get_first_arg_type(Pike_sp[-1].u.type, 0))) {    pop_n_elems(args);    push_undefined();    } else {