Convert to midp apis
This commit is contained in:
@@ -569,8 +569,10 @@ public class LuaTable extends LuaValue {
|
||||
Varargs n = next(k);
|
||||
if ( (k = n.arg1()).isnil() )
|
||||
break;
|
||||
l.add( k );
|
||||
l.addElement( k );
|
||||
}
|
||||
return (LuaValue[]) l.toArray(new LuaValue[l.size()]);
|
||||
LuaValue[] a = new LuaValue[l.size()];
|
||||
l.copyInto(a);
|
||||
return a;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class WeakTable extends LuaTable {
|
||||
return super.getHashLength();
|
||||
}
|
||||
|
||||
protected WeakTable changemode(boolean weakkeys, boolean weakvalues) {
|
||||
protected LuaTable changemode(boolean weakkeys, boolean weakvalues) {
|
||||
this.weakkeys = weakkeys;
|
||||
this.weakvalues = weakvalues;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user