diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-10 02:08:53 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-10 02:36:36 +1100 |
commit | 562ad6f874564c3770d096711f443b49f59ef686 (patch) | |
tree | 910d919dcee89c71eaeeec8465152add19dc4e9f /src/lmathlib.js | |
parent | 54c4a6a66778466630cca7a9223c760942c7ab70 (diff) | |
download | fengari-562ad6f874564c3770d096711f443b49f59ef686.tar.gz fengari-562ad6f874564c3770d096711f443b49f59ef686.tar.bz2 fengari-562ad6f874564c3770d096711f443b49f59ef686.zip |
src/: Fix some linter complaints
Diffstat (limited to 'src/lmathlib.js')
-rw-r--r-- | src/lmathlib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lmathlib.js b/src/lmathlib.js index f2354ca..e056fd8 100644 --- a/src/lmathlib.js +++ b/src/lmathlib.js @@ -27,7 +27,7 @@ const math_random = function(L) { /* random integer in the interval [low, up] */ lauxlib.luaL_argcheck(L, low <= up, 1, lua.to_luastring("interval is empty", true)); lauxlib.luaL_argcheck(L, low >= 0 || up <= luaconf.LUA_MAXINTEGER + low, 1, - lua.to_luastring("interval too large", true)); + lua.to_luastring("interval too large", true)); r *= (up - low) + 1; lua.lua_pushinteger(L, Math.floor(r) + low); |