Branch: Tag:

2021-02-07

2021-02-07 16:32:07 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Use weaker typecheck when casting result from eval_low().

Fixes issue with attempts to (soft) cast zero to eg string.

1459:    }       if (n->type) { -  if (!(result_type = soft_cast(type, n->type, 0))) { +  if (!(result_type = soft_cast(type, n->type, SOFT_WEAKER))) {    ref_push_type_value(n->type);    ref_push_type_value(type);    yytype_report(REPORT_ERROR,