changeset 45:b1b14d09fc98

minor git-svn-id: https://luan-java.googlecode.com/svn/trunk@46 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 27 Dec 2012 00:44:58 +0000
parents 57054fa43189
children a443637829c1
files src/luan/lib/TableLib.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r 57054fa43189 -r b1b14d09fc98 src/luan/lib/TableLib.java
--- a/src/luan/lib/TableLib.java	Wed Dec 26 23:53:25 2012 +0000
+++ b/src/luan/lib/TableLib.java	Thu Dec 27 00:44:58 2012 +0000
@@ -90,7 +90,7 @@
 			lt = new LessThan() {
 				public boolean isLessThan(Object o1,Object o2) {
 					try {
-						return Lua.toBoolean(lua.call(comp,LuaElement.JAVA,"comp-arg",o1,o2));
+						return Lua.toBoolean(Lua.first(lua.call(comp,LuaElement.JAVA,"comp-arg",o1,o2)));
 					} catch(LuaException e) {
 						throw new LuaRuntimeException(e);
 					}