diff core/src/luan/impl/LtExpr.java @ 576:4723d22062ce

remove LuanBit
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 13 Jul 2015 20:38:26 -0600
parents b48cfa14ba60
children 859c0dedc8b6
line wrap: on
line diff
--- a/core/src/luan/impl/LtExpr.java	Mon Jul 13 18:34:31 2015 -0600
+++ b/core/src/luan/impl/LtExpr.java	Mon Jul 13 20:38:26 2015 -0600
@@ -15,6 +15,11 @@
 	@Override public Object eval(LuanStateImpl luan) throws LuanException {
 		Object o1 = op1.eval(luan);
 		Object o2 = op2.eval(luan);
-		return luan.bit(el).isLessThan(o1,o2);
+		luan.push(el,null);
+		try {
+			return luan.isLessThan(o1,o2);
+		} finally {
+			luan.pop();
+		}
 	}
 }