aboutsummaryrefslogtreecommitdiff
path: root/src/linda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/linda.cpp')
-rw-r--r--src/linda.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linda.cpp b/src/linda.cpp
index 01b089e..76607a4 100644
--- a/src/linda.cpp
+++ b/src/linda.cpp
@@ -165,7 +165,7 @@ int Linda::ProtectedCall(lua_State* L_, lua_CFunction f_)
165 lua_pushcfunction(L_, f_); 165 lua_pushcfunction(L_, f_);
166 lua_insert(L_, 1); 166 lua_insert(L_, 1);
167 // do a protected call 167 // do a protected call
168 int const _rc{ lua_pcall(L_, lua_gettop(L_) - 1, LUA_MULTRET, 0) }; 168 LuaError const _rc{ lua_pcall(L_, lua_gettop(L_) - 1, LUA_MULTRET, 0) };
169 // whatever happens, the keeper state stack must be empty when we are done 169 // whatever happens, the keeper state stack must be empty when we are done
170 lua_settop(_KL, 0); 170 lua_settop(_KL, 0);
171 171
@@ -173,7 +173,7 @@ int Linda::ProtectedCall(lua_State* L_, lua_CFunction f_)
173 _linda->releaseKeeper(_K); 173 _linda->releaseKeeper(_K);
174 174
175 // if there was an error, forward it 175 // if there was an error, forward it
176 if (_rc != LUA_OK) { 176 if (_rc != LuaError::OK) {
177 raise_lua_error(L_); 177 raise_lua_error(L_);
178 } 178 }
179 // return whatever the actual operation provided 179 // return whatever the actual operation provided