Branch: Tag:

2021-12-18

2021-12-18 13:59:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Minor code clean up.

Reduce number of special cases somewhat.

836:    get_name_of_type(t), t);    }   #endif -  if (!peek_type_stack() || (peek_type_stack()->type == PIKE_T_ZERO)) { -  push_type(t == PIKE_T_STRING ? PIKE_T_UNKNOWN : PIKE_T_ZERO); +  if (!peek_type_stack()) { +  push_type(PIKE_T_ZERO);    } else {    push_int_type(0, MAX_INT32);    }