Branch: Tag:

2018-05-21

2018-05-21 16:45:53 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fix the type for F_TYPEOF nodes.

Fixes testsuite failure.

4009:    }    break;    +  case F_TYPEOF: +  if (CAR(n)) { +  push_finished_type(CAR(n)->type); +  } else { +  push_finished_type(mixed_type_string); +  } +  push_type(T_TYPE); +  if (n->type) free_type(n->type); +  n->type = pop_type(); +  break; +     case F_UNDEFINED:    copy_pike_type(n->type, zero_type_string);    break;