Branch: Tag:

2012-05-11

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

has_prefix: Fixed broken handling of objects.

1145:    struct object *o = Pike_sp[-args].u.object;    int inherit_no = SUBTYPEOF(Pike_sp[-args]);    +  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 ((TYPEOF(Pike_sp[-1]) != T_INT) || (Pike_sp[-1].u.integer < b->len)) {    pop_n_elems(args + 1);