lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


The counting of lua_call is wrong:

  4 lua_call(L, 3, 2);     /* call function with 3 arguments and 2 results */
  3 ...

lua_call removes its arguments plus the function been called from the
stack, so after the call the stack will have only 2 elements.

-- Roberto