Skip to content

Commit

Permalink
ruleset: fix build with Lua 5.3
Browse files Browse the repository at this point in the history
Signed-off-by: hexian000 <[email protected]>
  • Loading branch information
hexian000 committed Oct 7, 2023
1 parent 3db43b5 commit 23680bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruleset.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ static int ruleset_require_(lua_State *restrict L)
luaL_checktype(L, idx_openf, LUA_TFUNCTION);
lua_settop(L, 2);
const int idx_loaded = 3;
luaL_getsubtable(L, LUA_REGISTRYINDEX, LUA_LOADED_TABLE);
luaL_getsubtable(L, LUA_REGISTRYINDEX, "_LOADED");
const int idx_glb = 4;
lua_geti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS);

Expand Down

0 comments on commit 23680bd

Please sign in to comment.