Branch: Tag:

2014-08-27

2014-08-27 11:29:06 by Stephen R. van den Berg <srb@cuci.nl>

Simplify code.

3088:    index_error("Buffer->`[]", Pike_sp, args, NULL, Pike_sp,    "Index %"PRINTPIKEINT"d is out of array range 0..%d,\n",    index, len-1); -  p = (char*)p+(index<<shift); -  push_int (!shift ? *(p_wchar0*)p -  : shift==1 ? *(p_wchar1*)p -  : *(p_wchar2*)p); +  push_int (generic_extract(p, shift, index));    } else {    INT_TYPE end = end_or_none->u.integer;    struct object *res;