pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2011-12-09
2011-12-09 20:46:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>
301daff404d7ac8b3209cc85f9bf00ee51a67c3a (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
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 {