pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2017-01-04
2017-01-04 16:27:59 by Martin Nilsson <nilsson@fastmail.com>
44484369d519eee6737979e08c111ecb846b4313 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
Returning UNDEFINED from addition lfuns is now an error.
1399:
call_lhs_lfun(LFUN_ADD_EQ,2)) return 1; /* optimized version of +. */ if(call_lfun(LFUN_ADD, LFUN_RADD))
-
return 1;
/* standard editon */
+
return
!IS_UNDEFINED(sp-
1
)
;
} if (TYPEOF(sp[-2]) != TYPEOF(sp[-1]))
1598:
if(!pair_add()) { Pike_error("Addition on unsupported types: %s + %s\nm",
-
get_name_of_type(TYPEOF(
sp[-1]
)),
+
get_name_of_type(TYPEOF(
*(s+e
))
)
,
get_name_of_type(TYPEOF(*s))); } }