Improve calling convention handling when the number of arguments doesn't match the expected number, and the number of return values doesn't match those needed.
This commit is contained in:
@@ -17,7 +17,8 @@ public class Closure extends LValue {
|
||||
|
||||
|
||||
// perform a lua call
|
||||
public void luaStackCall(StackState state, int base, int nresults) {
|
||||
state.vmExecute( this, base+1 );
|
||||
public int luaStackCall(StackState state, int base, int nargs) {
|
||||
state.clear( base+1+nargs, p.numparams-nargs );
|
||||
return state.vmExecute( this, base+1 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user