summaryrefslogtreecommitdiff
path: root/src/lvm.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-24 15:05:44 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-24 15:53:08 +0100
commit0a006ad403733a85abe5be3f242c0264a4556afb (patch)
tree008b1cf32172a0fc17ddf2ff369a1b77e1618bc4 /src/lvm.js
parentfc79b2ae7a85af1b892a103340b9465274153c60 (diff)
downloadfengari-0a006ad403733a85abe5be3f242c0264a4556afb.tar.gz
fengari-0a006ad403733a85abe5be3f242c0264a4556afb.tar.bz2
fengari-0a006ad403733a85abe5be3f242c0264a4556afb.zip
math.abs, math.sin, math.cos, math.tan, math.asin, math.acos, math.atan
Diffstat (limited to 'src/lvm.js')
-rw-r--r--src/lvm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lvm.js b/src/lvm.js
index a0822cc..d623a72 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -845,7 +845,7 @@ const luaV_tointeger = function(obj, mode) {
};
const tointeger = function(o) {
- return o.ttisinteger() ? o.value : luaV_tointeger(o, 0);
+ return o.ttisinteger() ? o.value|0 : luaV_tointeger(o, 0);
};
const tonumber = function(v) {