Branch: Tag:

2014-12-04

2014-12-04 19:23:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Variants: Handle voidable types in the dispatcher.

6029:    flags ^= CALL_INVERTED_TYPES;    type = type->car;    goto loop; +  case T_VOID: +  /* Allow UNDEFINED for voidable arguments. */ +  res = (TYPEOF(*sval) == T_INT) && !sval->u.integer && SUBTYPEOF(*sval); +  break; +  case T_ZERO: +  res = SAFE_IS_ZERO(sval); +  break;    case PIKE_T_TYPE:    res = 1;    break;