1.1 --- a/templates/native/limits.c Sat Nov 06 17:06:01 2021 +0100
1.2 +++ b/templates/native/limits.c Sun Nov 07 01:18:51 2021 +0100
1.3 @@ -1,6 +1,6 @@
1.4 /* Native functions for limit definition.
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 @@ -27,14 +27,16 @@
1.12
1.13 /* Limit definition. */
1.14
1.15 -__attr __fn_native_limits_get_maxint(__attr __self)
1.16 +/* NOTE: Could have statically allocated limits. */
1.17 +
1.18 +__attr __fn_native_limits_get_maxint(__attr __stack, __attr __self)
1.19 {
1.20 - return __new_int(__MAXINT);
1.21 + return __new_int(__stack, __MAXINT);
1.22 }
1.23
1.24 -__attr __fn_native_limits_get_minint(__attr __self)
1.25 +__attr __fn_native_limits_get_minint(__attr __stack, __attr __self)
1.26 {
1.27 - return __new_int(__MININT);
1.28 + return __new_int(__stack, __MININT);
1.29 }
1.30
1.31 /* Module initialisation. */