1.1 --- a/templates/native/common.c Tue Jun 29 22:40:43 2021 +0200
1.2 +++ b/templates/native/common.c Tue Jun 29 23:57:03 2021 +0200
1.3 @@ -1,6 +1,6 @@
1.4 /* Common operations for native functions.
1.5
1.6 -Copyright (C) 2016, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2016, 2017, 2018, 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 @@ -29,7 +29,7 @@
1.12 __attr __new_str(char *s, int size)
1.13 {
1.14 /* Create a new string and mutate the __data__, __size__ and __key__ attributes. */
1.15 - __attr attr = __NEWINSTANCE(__builtins___str_string);
1.16 + __attr attr = __NEWINSTANCE(__builtins___str_str);
1.17 __store_via_object(__VALUE(attr), __data__, (__attr) {.strvalue=s});
1.18 __store_via_object(__VALUE(attr), __size__, __INTVALUE(size));
1.19 __store_via_object(__VALUE(attr), __key__, __NULL);