1.1 --- a/templates/native/common.c Thu Nov 04 23:44:29 2021 +0100
1.2 +++ b/templates/native/common.c Thu Nov 04 23:57:33 2021 +0100
1.3 @@ -26,6 +26,14 @@
1.4
1.5 /* Utility functions. */
1.6
1.7 +__attr __new_int(__int n)
1.8 +{
1.9 + /* Create a new int and set the trailing data. */
1.10 + __attr attr = __NEWINSTANCEIM(__builtins___int_int);
1.11 + __set_trailing_data(attr, __builtins___int_int, n);
1.12 + return attr;
1.13 +}
1.14 +
1.15 __attr __new_str(char *s, __int size)
1.16 {
1.17 /* Create a new string and mutate the __data__, __size__ and __key__ attributes. */
1.18 @@ -44,7 +52,7 @@
1.19 return attr;
1.20 }
1.21
1.22 -__attr __new_float(double n)
1.23 +__attr __new_float(__float n)
1.24 {
1.25 /* Create a new float and set the trailing data. */
1.26 __attr attr = __NEWINSTANCEIM(__builtins___float_float);