pike.git/
src/
las.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2020-02-04
2020-02-04 11:33:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>
c713f9a63437d0872a71989d4c500e5b3c75e46e (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Added DWIM kludge.
4608:
return n; } new = mksvaluenode(Pike_sp-1);
-
if (n->type && (!new->type || !pike_types_le(new->type, n->type))) {
+
if (
new->type &&
+
((new->type->type == PIKE_T_INT) || (new->type->type == PIKE_T_TYPE))) {
+
/* Ok. */
+
} else if (
n->type && (!new->type || !pike_types_le(new->type, n->type))) {
+
/* Try consolidating the type information. */
new = mksoftcastnode(n->type, new); } free_node(n);