Branch: Tag:

2012-05-11

2012-05-11 11:06:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

has_prefix: Fixed broken handling of objects.

1107:    struct object *o = Pike_sp[-args].u.object;    int inherit_no = Pike_sp[-args].subtype;    +  if (!o->prog || FIND_LFUN(o->prog, LFUN__SIZEOF) < 0) { +  Pike_error("has_prefix(): Object in argument 1 lacks lfun::_sizeof().\n"); +  } +     apply_lfun(o, LFUN__SIZEOF, 0);    if ((Pike_sp[-1].type != T_INT) || (Pike_sp[-1].u.integer < b->len)) {    pop_n_elems(args + 1);