1.1 --- a/templates/native/iconv.c Sat Oct 30 23:09:57 2021 +0200
1.2 +++ b/templates/native/iconv.c Sun Oct 31 01:01:10 2021 +0200
1.3 @@ -1,6 +1,6 @@
1.4 /* Native functions for character set conversion.
1.5
1.6 -Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2016, 2017, 2021 Paul Boddie <paul@boddie.org.uk>
1.8
1.9 This program is free software; you can redistribute it and/or modify it under
1.10 the terms of the GNU General Public License as published by the Free Software
1.11 @@ -56,8 +56,8 @@
1.12 /* Obtain the string, start position, and remaining bytes from the state. */
1.13
1.14 char *inbuf = __load_via_object(__VALUE(f->attrs[0]), __data__).strvalue;
1.15 - int start = __TOINT(f->attrs[1]);
1.16 - int remaining = __TOINT(f->attrs[2]);
1.17 + __int start = __TOINT(f->attrs[1]);
1.18 + __int remaining = __TOINT(f->attrs[2]);
1.19
1.20 /* Allocate a string for the output buffer using the remaining input size
1.21 as a guide. */