pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:27:20 by Martin Nilsson <nilsson@opera.com>
f506fae897783023d079a20e30914530db2928d4 (
11
lines) (+
6
/-
5
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
Fixed casting bug.
513:
stack_pop_keep_top();
+
if(TYPEOF(sp[-1]) == T_INT &&
+
SUBTYPEOF(sp[-1]) == NUMBER_UNDEFINED)
+
Pike_error("Cannot cast this object to %s.\n",
+
get_name_of_type(type->type));
+
} else switch(run_time_type)
724:
} }
-
if(TYPEOF(sp[-1]) == T_INT &&
-
SUBTYPEOF(sp[-1]) == NUMBER_UNDEFINED)
-
Pike_error("Cannot cast this object to %s.\n",
-
get_name_of_type(type->type));
-
+
if(run_time_type != TYPEOF(sp[-1])) { switch(TYPEOF(sp[-1])) {