Closed vsergeev closed 4 years ago
should be fixed now; and thanks for testing these, if there's anything the project needs right now it's various cases like this being tested and included into the testsuite (to avoid later regressions; it's really easy to mess things up as far as these kinda semantics are concerned)
No problem. cffi-lua is an awesome module, and it seems very close to parity with the LuaJIT FFI. I've been investigating the performance of running LuaRadio -- which relies heavily on the FFI -- under vanilla Lua, mostly out of curiosity. I think I will have a handful more test cases for you.
Error occurs when assigning a structure array element by value through a pointer. Same error occurs for assignment through a fixed size array, e.g.
local points = ffi.new("point_t [32]")
.