pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-04-01
2021-04-01 15:08:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>
d97d4dd801ef4638c6b4bf5c35fd198e4cc3a4b5 (
39
lines) (+
21
/-
18
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Handle return of __unknown__ in match_types().
7909:
/* check the returntype */ a = a->cdr; b = b->cdr;
+
if (a && b) {
if ((b->type == T_VOID) && (a->type != T_VOID)) { /* Promote b to a function returning zero. */ if (!(tmp = low_match_types(a, zero_type_string,
7929:
} free_type(tmp); }
+
}
add_ref(ret); return ret; }