From 1039bb09ecd50e6032173dcfb792c56cbd2b618a Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 19 May 2017 20:56:21 +0200 Subject: [test-suite] nextvar.js, fixed bad comparison in LTNum --- src/lvm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2