Mercurial Hosting > luan
diff src/luan/lib/MathLib.java @ 112:f5af13062b10
fix previous rev
git-svn-id: https://luan-java.googlecode.com/svn/trunk@113 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 23 May 2014 22:52:39 +0000 |
parents | 3c404a296995 |
children | f537ff5e511d |
line wrap: on
line diff
--- a/src/luan/lib/MathLib.java Fri May 23 20:40:05 2014 +0000 +++ b/src/luan/lib/MathLib.java Fri May 23 22:52:39 2014 +0000 @@ -11,7 +11,7 @@ public static final String NAME = "Math"; public static final LuanFunction LOADER = new LuanFunction() { - @Override public Object[] call(LuanState luan,Object[] args) { + @Override public Object call(LuanState luan,Object[] args) { LuanTable module = new LuanTable(); try { add( module, "abs", Double.TYPE ); @@ -41,7 +41,7 @@ } catch(NoSuchMethodException e) { throw new RuntimeException(e); } - return new Object[]{module}; + return module; } };