Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 261db4a

Browse files
committed
Switch from lua_seti to lua_rawseti for Lua 5.1.
1 parent 33ad968 commit 261db4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lua.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@ unsafe fn create_lua(lua_mod_to_load: StdLib, init_flags: InitFlags) -> Lua {
727727
debug_assert_eq!(rawlen(state, -1), 4);
728728
// Remove the searchers/loaders which will load C libraries.
729729
ffi::lua_pushnil(state);
730-
ffi::lua_seti(state, -2, 4);
730+
ffi::lua_rawseti(state, -2, 4);
731731
ffi::lua_pushnil(state);
732-
ffi::lua_seti(state, -2, 3);
732+
ffi::lua_rawseti(state, -2, 3);
733733

734734
ffi::lua_pop(state, 1);
735735
} else {

0 commit comments

Comments
 (0)