jmckaskill / luaffi

Standalone FFI library for calling C functions from lua. Compatible with the luajit FFI interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2 arg for of ffi.fill not supported

justincormack opened this issue · comments

ffi.fill with 2 args does a zero fill, but gives

test: ./syscall.lua:3833: bad argument #3 to 'fill' (number expected, got table)
stack traceback:
    [C]: in function 'fill'
    ./syscall.lua:3833: in function '?'
    test.lua:647: in main chunk
    [C]: ?

worked around this too by putting the 0 in explicitly and fixed the last issues, now ljsyscall tests pass with luaffi!

now ljsyscall tests pass with luaffi!

Awesome