1.1 --- a/templates/native/str.c Mon Feb 27 11:57:15 2017 +0100
1.2 +++ b/templates/native/str.c Mon Feb 27 14:41:27 2017 +0100
1.3 @@ -113,11 +113,11 @@
1.4 /* _data interpreted as string */
1.5 char *s = _data->strvalue, *sub;
1.6 /* start.__data__ interpreted as int */
1.7 - int istart = __load_via_object(start->value, __ATTRPOS(__data__)).intvalue;
1.8 + int istart = __load_via_object(start->value, __data__).intvalue;
1.9 /* end.__data__ interpreted as int */
1.10 - int iend = __load_via_object(end->value, __ATTRPOS(__data__)).intvalue;
1.11 + int iend = __load_via_object(end->value, __data__).intvalue;
1.12 /* step.__data__ interpreted as int */
1.13 - int istep = __load_via_object(step->value, __ATTRPOS(__data__)).intvalue;
1.14 + int istep = __load_via_object(step->value, __data__).intvalue;
1.15
1.16 /* Calculate the size of the substring. */
1.17 size_t resultsize = ((iend - istart - (istep > 0 ? 1 : -1)) / istep) + 1;