pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:9341:    free_type(b);    return pop_unfinished_type();    }       case T_AND:    /* FIXME: Shouldn't both branches be looked at? */    return low_index_type(t->cdr, index_type, n);       case T_STRING: /* always int */    { -  if (t->cdr->type == T_ZERO) { +  if (!t->cdr || (t->cdr->type == T_ZERO)) {    yywarning("Indexing the empty string.");    }    add_ref(t->cdr);    return t->cdr;    }       case T_MULTISET: /* always int(0..1) */    type_stack_mark();    push_int_type(0, 1);    return pop_unfinished_type();