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 bd40f5e..6655ae4 100644
--- a/src/linda.cpp
+++ b/src/linda.cpp
@@ -981,7 +981,7 @@ LUAG_FUNC(linda)
981 lua_replace(L_, 3); // L_: name group close_handler 981 lua_replace(L_, 3); // L_: name group close_handler
982 982
983 // if we have a __close handler, we need a uservalue slot to store it 983 // if we have a __close handler, we need a uservalue slot to store it
984 int const _nuv{ _closeHandlerIdx ? 1 : 0 }; 984 UserValueCount const _nuv{ _closeHandlerIdx ? 1 : 0 };
985 LindaFactory::Instance.pushDeepUserdata(DestState{ L_ }, _nuv); // L_: name group close_handler linda 985 LindaFactory::Instance.pushDeepUserdata(DestState{ L_ }, _nuv); // L_: name group close_handler linda
986 if (_closeHandlerIdx != 0) { 986 if (_closeHandlerIdx != 0) {
987 lua_replace(L_, 2); // L_: name linda close_handler 987 lua_replace(L_, 2); // L_: name linda close_handler
@@ -996,7 +996,7 @@ LUAG_FUNC(linda)
996 if (_nameIdx > _groupIdx) { 996 if (_nameIdx > _groupIdx) {
997 lua_insert(L_, 1); // L_: name group 997 lua_insert(L_, 1); // L_: name group
998 } 998 }
999 LindaFactory::Instance.pushDeepUserdata(DestState{ L_ }, 0); // L_: name group linda 999 LindaFactory::Instance.pushDeepUserdata(DestState{ L_ }, UserValueCount{ 0 }); // L_: name group linda
1000 return 1; 1000 return 1;
1001 } 1001 }
1002 1002