pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-04-03
2021-04-03 12:25:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>
e8699e1201957dcf0dccccb558fced945ad8dadc (
7
lines) (+
5
/-
2
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Fix some NULL-derefs when rendering types.
2388:
fprintf(stderr, ": "); } s = s->cdr;
-
if (s != int_type_string) {
+
if (s
&& (s
!= int_type_string)
)
{
while (s->type == T_OR) { struct pike_type *char_type = s->car; while(char_type->type == T_ASSIGN) {
2439:
} if (s->type == T_ZERO) { fprintf(stderr, "zero");
+
} else if (s->type == T_MIXED) {
+
fprintf(stderr, "mixed");
} else if ((s->type >= '0') && (s->type <= '9')) { fprintf(stderr, "$%c", s->type); } else {
2861:
break; case T_MULTISET:
-
if(t->car->type != T_MIXED) {
+
if(t->car
&& (t
->
car->
type != T_MIXED)
)
{
string_builder_sprintf(s, "multiset(%T)", t->car); } else { string_builder_strcat(s, "multiset");