Mercurial Hosting > luan
diff src/luan/interp/TableExpr.java @ 46:a443637829c1
remove LuaNumber
git-svn-id: https://luan-java.googlecode.com/svn/trunk@47 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 27 Dec 2012 01:48:36 +0000 |
parents | 57054fa43189 |
children | 64ecb7a3aad7 |
line wrap: on
line diff
--- a/src/luan/interp/TableExpr.java Thu Dec 27 00:44:58 2012 +0000 +++ b/src/luan/interp/TableExpr.java Thu Dec 27 01:48:36 2012 +0000 @@ -2,7 +2,6 @@ import luan.LuaException; import luan.LuaTable; -import luan.LuaNumber; import luan.LuaSource; @@ -34,7 +33,7 @@ } Object[] a = expressions.eval(lua); for( int i=0; i<a.length; i++ ) { - table.put( LuaNumber.of(i+1), a[i] ); + table.put( i+1, a[i] ); } return table; }