pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-11-20
2021-11-20 13:55:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>
ce7b1aac2d62c0f6bb0fe43796b3c5878af572f8 (
8
lines) (+
3
/-
5
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Improved type for empty array.
1617:
push_type(T_MIXED); } else { /* Check the bits... */
-
push_type(T_
ZERO
);
+
push_type(
PIKE_
T_
UNKNOWN
);
if (field & BIT_COMPLEX) { if (field & BIT_ARRAY) {
12602:
free_type(arg_type); } #else /* !0 */
-
if
(a->size
)
{
-
push_type_field(
a->type_field
);
-
}else
-
push_finished_type(zero_type_string
);
+
push_type_field
(a->size
?
a->type_field
:
0
);
#endif /* 0 */ push_int_type(a->size, a->size); push_type(T_ARRAY);