pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2022-05-07
2022-05-07 14:23:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>
fa9544546a3b8441aab79c859be88f54053cc91f (
21
lines) (+
13
/-
8
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Ignore the return value for functions returning void.
5656:
if (!bret) bret = bi->cdr; /* NB: Ignore the return type if matching against void. */
+
if (bret != void_type_string) {
tmp = low_type_binop(PT_BINOP_MINUS, aret, bret, remap, PT_FLAG_CMP_VOIDABLE, 0, remap_flags);
5669:
push_type(PIKE_T_UNKNOWN); } } else {
+
push_type(PIKE_T_UNKNOWN);
+
}
+
} else {
/* Recurse. */ tmp = low_type_binop(PT_BINOP_MINUS, ai, bi, remap, aflags, bflags, remap_flags);