Branch: Tag:

2022-04-29

2022-04-29 13:08:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime: Improved robustness for describe_type() et al.

2829:    } else {    int arg = 0;    string_builder_strcat(s, "function("); -  while(t->type == T_FUNCTION) +  while(t && (t->type == T_FUNCTION))    {    if(arg++) string_builder_strcat(s, ", ");    low_describe_type(s, t->car);    t = t->cdr;    } -  if (t->type != T_MANY) { +  if (!t || (t->type != T_MANY)) {    string_builder_sprintf(s, ", @%T)", t);    } else {    if(!t->car || (t->car->type != T_VOID))