pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-12-18
2021-12-18 13:59:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>
164f28b99ebf7b99f09782c06860f923cc89b6b8 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Minor code clean up.
Reduce number of special cases somewhat.
836:
get_name_of_type(t), t); } #endif
-
if (!peek_type_stack()
|| (peek_type_stack(
)
->type
== PIKE_T_ZERO))
{
-
push_type(
t ==
PIKE_T_
STRING ? PIKE_T_UNKNOWN : PIKE_T_
ZERO);
+
if (!peek_type_stack()) {
+
push_type(PIKE_T_ZERO);
} else { push_int_type(0, MAX_INT32); }