From fe8d396980f18bf09ee2717817cd795130cf64d1 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 20 Dec 2024 12:26:29 +0100 Subject: Migrated unit tests to Catch2 v3.7.1 --- src/deep.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/deep.cpp b/src/deep.cpp index bc0b73c..c1ef30e 100644 --- a/src/deep.cpp +++ b/src/deep.cpp @@ -112,13 +112,13 @@ int DeepFactory::DeepGC(lua_State* const L_) if (_isLastRef) { // retrieve wrapped __gc, if any - lua_pushvalue(L_, lua_upvalueindex(1)); // L_: self __gc? + lua_pushvalue(L_, lua_upvalueindex(1)); // L_: self __gc? if (!lua_isnil(L_, -1)) { - lua_insert(L_, -2); // L_: __gc self - lua_call(L_, 1, 0); // L_: + lua_insert(L_, -2); // L_: __gc self + lua_call(L_, 1, 0); // L_: } else { // need an empty stack in case we are GC_ing from a Keeper, so that empty stack checks aren't triggered - lua_pop(L_, 2); // L_: + lua_pop(L_, 2); // L_: } DeleteDeepObject(L_, _p); } -- cgit v1.2.3-55-g6feb