Branch: Tag:

2021-02-19

2021-02-19 14:49:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Improved result type for logical or.

Fixes some warnings.

3593:    {    copy_pike_type(n->type, CDR(n)->type);    }else{ +  if (n->token == F_LOR) { +  struct pike_type *tmp = +  type_binop(PT_BINOP_MINUS, CAR(n)->type, zero_type_string, +  0, PT_FLAG_CMP_VOIDABLE, 0); +  n->type = or_pike_types(tmp, CDR(n)->type, 0); +  free_type(tmp); +  } else {    n->type = or_pike_types(CAR(n)->type, CDR(n)->type, 0);    } -  +  }    break;       case F_APPEND_MAPPING: