aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-19 20:56:21 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-19 20:56:21 +0200
commit1039bb09ecd50e6032173dcfb792c56cbd2b618a (patch)
treedff6a51fc7fc81fbea984a85ce1f3b563e02a42b /src
parentd7f4cd696c9245870eabd5f57d3000a70aaad64b (diff)
downloadfengari-1039bb09ecd50e6032173dcfb792c56cbd2b618a.tar.gz
fengari-1039bb09ecd50e6032173dcfb792c56cbd2b618a.tar.bz2
fengari-1039bb09ecd50e6032173dcfb792c56cbd2b618a.zip
[test-suite] nextvar.js, fixed bad comparison in LTNum
Diffstat (limited to 'src')
-rw-r--r--src/lvm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lvm.js b/src/lvm.js
index df4f62f..6857b1d 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -835,7 +835,7 @@ const LTnum = function(l, r) {
if (r.ttisinteger())
return l.value < r.value ? 1 : 0;
else
- return LTintfloat(r.value, l.value);
+ return LTintfloat(l.value, r.value);
} else {
if (r.ttisfloat())
return l.value < r.value ? 1 : 0;