diff src/luan/interp/LtExpr.java @ 37:8a57ebfdfd78

add JavaLib git-svn-id: https://luan-java.googlecode.com/svn/trunk@38 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 20 Dec 2012 02:36:07 +0000
parents e51906de0f11
children e3624b7cd603
line wrap: on
line diff
--- a/src/luan/interp/LtExpr.java	Tue Dec 18 09:53:42 2012 +0000
+++ b/src/luan/interp/LtExpr.java	Thu Dec 20 02:36:07 2012 +0000
@@ -25,7 +25,7 @@
 			String s2 = (String)o2;
 			return s1.compareTo(s2) < 0;
 		}
-		LuaFunction fn = getBinHandler("__lt",o1,o2);
+		LuaFunction fn = lua.getBinHandler("__lt",o1,o2);
 		if( fn != null )
 			return Lua.toBoolean( Utils.first(fn.call(lua,o1,o2)) );
 		throw new LuaException( "attempt to compare " + Lua.type(o1) + " with " + Lua.type(o2) );