Mercurial Hosting > luan
diff core/src/luan/impl/LeExpr.java @ 460:b48cfa14ba60
improve stack trace
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 06 May 2015 14:32:29 -0600 |
parents | bf5e62a9090c |
children | 4723d22062ce |
line wrap: on
line diff
--- a/core/src/luan/impl/LeExpr.java Wed May 06 12:58:06 2015 -0600 +++ b/core/src/luan/impl/LeExpr.java Wed May 06 14:32:29 2015 -0600 @@ -3,14 +3,14 @@ import luan.Luan; import luan.LuanFunction; import luan.LuanException; -import luan.LuanSource; +import luan.LuanElement; import luan.LuanBit; final class LeExpr extends BinaryOpExpr { - LeExpr(LuanSource.Element se,Expr op1,Expr op2) { - super(se,op1,op2); + LeExpr(LuanElement el,Expr op1,Expr op2) { + super(el,op1,op2); } @Override public Object eval(LuanStateImpl luan) throws LuanException { @@ -30,7 +30,7 @@ String s2 = (String)o2; return s1.compareTo(s2) <= 0; } - LuanBit bit = luan.bit(se); + LuanBit bit = luan.bit(el); LuanFunction fn = bit.getBinHandler("__le",o1,o2); if( fn != null ) return bit.checkBoolean( Luan.first(bit.call(fn,"__le",new Object[]{o1,o2})) );