1.1 --- a/templates/native/str.c Tue Aug 29 18:37:11 2023 +0200
1.2 +++ b/templates/native/str.c Tue Aug 29 19:30:28 2023 +0200
1.3 @@ -34,7 +34,7 @@
1.4 char *s = _data.strvalue;
1.5 char *o = other.strvalue;
1.6 /* _size, othersize interpreted as size */
1.7 - __int ss = _size.sizevalue, os = othersize.sizevalue;
1.8 + __int ss = __TOINT(_size), os = __TOINT(othersize);
1.9 __int n = ss + os;
1.10 char *r = (char *) __ALLOCATE(n + 1, sizeof(char));
1.11
1.12 @@ -95,7 +95,7 @@
1.13
1.14 __attr __fn_native_str_str_size(__attr __result, __attr __self, __attr _size)
1.15 {
1.16 - return __new_int(_size.sizevalue);
1.17 + return __new_int(__TOINT(_size));
1.18 }
1.19
1.20 __attr __fn_native_str_str_substr(__attr __result, __attr __self, __attr _data, __attr start, __attr end, __attr step)