-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic while trying to iterate LuaTable #134
Comments
The functions that are being called are:
|
That can't be correct, it doesn't even starts iterating on the table. |
You're right, I ran the wrong script. I've updated the original message |
Oh I think the problem is:
(as documented here: http://pgl.yoyo.org/luai/i/lua_next) I have recently modified this code to use this function, and I guess it's wrong to do that. |
Ah yes changing Thank you! |
Err, it's still a bug. Don't close this. |
I'm trying to map a LuaTable into a simpler enum to work with, but when I try to iterate a hlua::LuaTable I get a panic deep in the C lua code.
https://gist.github.com/VictorKoenders/646393fe46dd6c6f282968a69fec6183
Is there a better way of doing this?
Rust 1.17.0 nightly
Cargo 0.18.0
hlua 0.3.1
The text was updated successfully, but these errors were encountered: