pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-11-06
2021-11-06 18:08:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>
fe572b23ea6f355d8d18e5421f172eeb3b63dc79 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Improved handling of __unknown__.
3727:
static void low_and_pike_types(struct pike_type *t1, struct pike_type *t2) {
-
if(!t1 || t1->type == T_VOID ||
-
!
t2
|| t2
->type == T_VOID)
-
{
+
if
(!t1 ||
!t2) {
+
push_type(PIKE_T_UNKNOWN);
+
} else if(
t1->type == T_VOID || t2->type == T_VOID) {
push_type(T_VOID); } else if(t1->type == T_ZERO ||