diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-04 11:54:16 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-04 11:55:49 +1000 |
commit | 24e4656be7105e090e2f1a76a294daf2d9c293af (patch) | |
tree | 92d92591e70766bfd962e5e8f95300fad59a024c /src/llimit.js | |
parent | adb15f3073139981fa38ed61587513a92065cf03 (diff) | |
download | fengari-24e4656be7105e090e2f1a76a294daf2d9c293af.tar.gz fengari-24e4656be7105e090e2f1a76a294daf2d9c293af.tar.bz2 fengari-24e4656be7105e090e2f1a76a294daf2d9c293af.zip |
Add more/correct validation around integers
Diffstat (limited to 'src/llimit.js')
-rw-r--r-- | src/llimit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/llimit.js b/src/llimit.js index 06b8370..c8455b8 100644 --- a/src/llimit.js +++ b/src/llimit.js @@ -5,11 +5,11 @@ const LUAI_MAXCCALLS = 200; module.exports.LUAI_MAXCCALLS = LUAI_MAXCCALLS; const LUA_MAXINTEGER = 2147483647; module.exports.LUA_MAXINTEGER = LUA_MAXINTEGER; -const LUA_MININTEGER = -2147483647; +const LUA_MININTEGER = -2147483648; module.exports.LUA_MININTEGER = LUA_MININTEGER; // If later integers are more than 32bit, LUA_MAXINTEGER will then be != MAX_INT const MAX_INT = 2147483647; module.exports.MAX_INT = MAX_INT; -const MIN_INT = -2147483647; +const MIN_INT = -2147483648; module.exports.MIN_INT = MIN_INT; |