Update tests (fix LUA_GLOBALSINDEX)

This commit is contained in:
Alex Orlenko 2022-12-02 23:24:55 +00:00
parent 19d97491ab
commit 4dee6278da
No known key found for this signature in database
GPG Key ID: 4C150C250863B96D
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ extern "C" {
}
pub unsafe fn lua_getglobal(state: *mut c_void, k: *const c_char) {
lua_getfield(state, -10002 /* LUA_GLOBALSINDEX */, k);
lua_getfield(state, -102002 /* LUA_GLOBALSINDEX */, k);
}
#[test]