1.1 --- a/templates/native/limits.c Sun Mar 19 00:56:43 2017 +0100
1.2 +++ b/templates/native/limits.c Fri Mar 24 22:39:37 2017 +0100
1.3 @@ -16,7 +16,6 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 */
1.6
1.7 -#include <limits.h> /* INT_MAX, INT_MIN */
1.8 #include "native/common.h"
1.9 #include "types.h"
1.10 #include "exceptions.h"
1.11 @@ -30,12 +29,12 @@
1.12
1.13 __attr __fn_native_limits_get_maxint(__attr __self)
1.14 {
1.15 - return __new_int(INT_MAX);
1.16 + return __new_int(__MAXINT);
1.17 }
1.18
1.19 __attr __fn_native_limits_get_minint(__attr __self)
1.20 {
1.21 - return __new_int(INT_MIN);
1.22 + return __new_int(__MININT);
1.23 }
1.24
1.25 /* Module initialisation. */