Branch: Tag:

2014-12-04

2014-12-04 19:27:20 by Martin Nilsson <nilsson@opera.com>

Fixed casting bug.

513:       stack_pop_keep_top();    +  if(TYPEOF(sp[-1]) == T_INT && +  SUBTYPEOF(sp[-1]) == NUMBER_UNDEFINED) +  Pike_error("Cannot cast this object to %s.\n", +  get_name_of_type(type->type)); +     } else       switch(run_time_type)
724:    }    }    -  if(TYPEOF(sp[-1]) == T_INT && -  SUBTYPEOF(sp[-1]) == NUMBER_UNDEFINED) -  Pike_error("Cannot cast this object to %s.\n", -  get_name_of_type(type->type)); -  +     if(run_time_type != TYPEOF(sp[-1]))    {    switch(TYPEOF(sp[-1])) {