diff options
Diffstat (limited to 'src/deep.cpp')
-rw-r--r-- | src/deep.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/deep.cpp b/src/deep.cpp index f59e051..74ecfb8 100644 --- a/src/deep.cpp +++ b/src/deep.cpp | |||
@@ -184,7 +184,7 @@ static int deep_userdata_gc( lua_State* L) | |||
184 | // top was set to 0, then userdata was pushed. "delete" might want to pop the userdata (we don't care), but should not push anything! | 184 | // top was set to 0, then userdata was pushed. "delete" might want to pop the userdata (we don't care), but should not push anything! |
185 | if ( lua_gettop( L) > 1) | 185 | if ( lua_gettop( L) > 1) |
186 | { | 186 | { |
187 | luaL_error( L, "Bad idfunc(eDO_delete): should not push anything"); | 187 | return luaL_error( L, "Bad idfunc(eDO_delete): should not push anything"); |
188 | } | 188 | } |
189 | } | 189 | } |
190 | *proxy = nullptr; // make sure we don't use it any more, just in case | 190 | *proxy = nullptr; // make sure we don't use it any more, just in case |
@@ -478,8 +478,8 @@ bool copydeep(Universe* U, lua_State* L2, int L2_cache_i, lua_State* L, int i, L | |||
478 | if (errmsg != nullptr) | 478 | if (errmsg != nullptr) |
479 | { | 479 | { |
480 | // raise the error in the proper state (not the keeper) | 480 | // raise the error in the proper state (not the keeper) |
481 | lua_State* errL = (mode_ == eLM_FromKeeper) ? L2 : L; | 481 | lua_State* const errL { (mode_ == eLM_FromKeeper) ? L2 : L }; |
482 | luaL_error( errL, errmsg); | 482 | std::ignore = luaL_error(errL, errmsg); |
483 | } | 483 | } |
484 | return true; | 484 | return true; |
485 | } \ No newline at end of file | 485 | } \ No newline at end of file |