You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.
if [ uname = "Darwin" ]; then make test_macosx; else make test_posix; fi
make[1]: Entering directory '/home/i/luaffi'
LD_LIBRARY_PATH=./ lua test.lua
Running test
lua: test.lua:852: bad argument #1 to 'pairs' (table expected, got userdata)
stack traceback:
[C]: in function 'pairs'
test.lua:852: in main chunk
[C]: ?
Makefile:50: recipe for target 'test_posix' failed
make[1]: *** [test_posix] Error 1
make[1]: Leaving directory '/home/i/luaffi'
Makefile:18: recipe for target 'test' failed
make: *** [test] Error 2
The line in question is x, y = pairs(v)
v is a struct and I would actually think that we cannot iterate over a struct, but i might be wrong. If I remove the two lines that iterate over the struct using ipairs and pairs all tests pass
My lua: Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
if [
uname
= "Darwin" ]; then make test_macosx; else make test_posix; fimake[1]: Entering directory '/home/i/luaffi'
LD_LIBRARY_PATH=./ lua test.lua
Running test
lua: test.lua:852: bad argument #1 to 'pairs' (table expected, got userdata)
stack traceback:
[C]: in function 'pairs'
test.lua:852: in main chunk
[C]: ?
Makefile:50: recipe for target 'test_posix' failed
make[1]: *** [test_posix] Error 1
make[1]: Leaving directory '/home/i/luaffi'
Makefile:18: recipe for target 'test' failed
make: *** [test] Error 2
The line in question is x, y = pairs(v)
v is a struct and I would actually think that we cannot iterate over a struct, but i might be wrong. If I remove the two lines that iterate over the struct using ipairs and pairs all tests pass
My lua: Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
The text was updated successfully, but these errors were encountered: