Branch: Tag:

1999-07-27

1999-07-27 16:41:37 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

o_cast: optimized some cases for no subtypes to simplify calling inside pike

Rev: src/opcodes.c:1.42

23:   #include "module_support.h"   #include "security.h"    - RCSID("$Id: opcodes.c,v 1.41 1999/07/04 12:35:54 mirar Exp $"); + RCSID("$Id: opcodes.c,v 1.42 1999/07/27 16:41:37 mirar Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {
372:    fatal("Internal error: Cast failed (run_time_type = %d, sp[-1].type = %d.)\n",run_time_type,sp[-1].type);   #endif    +  if (!type) return; +     switch(run_time_type)    {    case T_ARRAY: