Mercurial Hosting > luan
comparison src/luan/lib/TableLib.java @ 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 |
comparison
equal
deleted
inserted
replaced
| 44:57054fa43189 | 45:b1b14d09fc98 |
|---|---|
| 88 }; | 88 }; |
| 89 } else { | 89 } else { |
| 90 lt = new LessThan() { | 90 lt = new LessThan() { |
| 91 public boolean isLessThan(Object o1,Object o2) { | 91 public boolean isLessThan(Object o1,Object o2) { |
| 92 try { | 92 try { |
| 93 return Lua.toBoolean(lua.call(comp,LuaElement.JAVA,"comp-arg",o1,o2)); | 93 return Lua.toBoolean(Lua.first(lua.call(comp,LuaElement.JAVA,"comp-arg",o1,o2))); |
| 94 } catch(LuaException e) { | 94 } catch(LuaException e) { |
| 95 throw new LuaRuntimeException(e); | 95 throw new LuaRuntimeException(e); |
| 96 } | 96 } |
| 97 } | 97 } |
| 98 }; | 98 }; |
