diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat.cpp b/src/compat.cpp index 1f8eaf9..8d0bc19 100644 --- a/src/compat.cpp +++ b/src/compat.cpp | |||
@@ -48,9 +48,9 @@ LuaType luaG_getmodule(lua_State* const L_, std::string_view const& name_) | |||
48 | int luaL_getsubtable(lua_State* const L_, StackIndex const idx_, char const* fname_) | 48 | int luaL_getsubtable(lua_State* const L_, StackIndex const idx_, char const* fname_) |
49 | { | 49 | { |
50 | lua_getfield(L_, idx_, fname_); | 50 | lua_getfield(L_, idx_, fname_); |
51 | if (lua_istable(L_, -1)) | 51 | if (lua_istable(L_, -1)) { |
52 | return 1; /* table already there */ | 52 | return 1; /* table already there */ |
53 | else { | 53 | } else { |
54 | lua_pop(L_, 1); /* remove previous result */ | 54 | lua_pop(L_, 1); /* remove previous result */ |
55 | StackIndex const _absidx{ luaG_absindex(L_, idx_) }; | 55 | StackIndex const _absidx{ luaG_absindex(L_, idx_) }; |
56 | lua_newtable(L_); | 56 | lua_newtable(L_); |