Branch: Tag:

2021-02-14

2021-02-14 15:05:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime: Fix rendering issue of array types.

2773:       case T_ARRAY:    string_builder_strcat(s, "array"); -  if((t->cdr->type == T_MIXED) && (t->car == int_pos_type_string)) { +  if (t->cdr && (t->cdr->type == T_MIXED) && +  (t->car == int_pos_type_string)) {    break;    }    string_builder_putchar(s, '('); -  +  if (t->car != int_pos_type_string) {    if (t->car == zero_type_string) {    /* Zero-length array. */    string_builder_strcat(s, "zero");    } else { -  if (t->car != int_pos_type_string) { +     low_describe_int_range(s, t->car); -  +  }    string_builder_putchar(s, ':');    if (t->cdr->type != T_MIXED) {    string_builder_putchar(s, ' ');    }    } -  } -  if (t->cdr->type != T_MIXED) { +  if (t->cdr && (t->cdr->type != T_MIXED)) {    string_builder_sprintf(s, "%T", t->cdr);    }    string_builder_putchar(s, ')');