pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-11-06
2021-11-06 17:56:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>
9b12eec328212ebf4a4bf2ae2e6b644f947929ae (
5
lines) (+
4
/-
1
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Fix handling of __unknown__ in string types.
2468:
while(s->type == T_ASSIGN) { s = s->cdr; }
-
if (s->type == T_ZERO) {
+
if (
!
s
) {
+
fprintf(stderr, "__unknown__");
+
} else if (s
->type == T_ZERO) {
fprintf(stderr, "zero"); } else if (s->type == T_MIXED) { fprintf(stderr, "mixed");