diff options
Diffstat (limited to 'deep_test')
-rw-r--r-- | deep_test/deep_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deep_test/deep_test.cpp b/deep_test/deep_test.cpp index c330cbe..c75c360 100644 --- a/deep_test/deep_test.cpp +++ b/deep_test/deep_test.cpp | |||
@@ -57,7 +57,7 @@ void MyDeepFactory::deleteDeepObjectInternal(lua_State* const L_, DeepPrelude* c | |||
57 | { | 57 | { |
58 | MyDeepUserdata* const _self{ static_cast<MyDeepUserdata*>(MyDeepFactory::Instance.toDeep(L, 1)) }; | 58 | MyDeepUserdata* const _self{ static_cast<MyDeepUserdata*>(MyDeepFactory::Instance.toDeep(L, 1)) }; |
59 | _self->inUse.fetch_add(1, std::memory_order_seq_cst); | 59 | _self->inUse.fetch_add(1, std::memory_order_seq_cst); |
60 | lua_pushfstring(L, "%p:deep(%d)", lua_topointer(L, 1), _self->val); | 60 | std::ignore = luaG_pushstringview(L, "%p:deep(%d)", lua_topointer(L, 1), _self->val); |
61 | _self->inUse.fetch_sub(1, std::memory_order_seq_cst); | 61 | _self->inUse.fetch_sub(1, std::memory_order_seq_cst); |
62 | return 1; | 62 | return 1; |
63 | } | 63 | } |
@@ -177,7 +177,7 @@ struct MyClonableUserdata | |||
177 | [[nodiscard]] static int clonable_tostring(lua_State* L) | 177 | [[nodiscard]] static int clonable_tostring(lua_State* L) |
178 | { | 178 | { |
179 | MyClonableUserdata* self = static_cast<MyClonableUserdata*>(lua_touserdata(L, 1)); | 179 | MyClonableUserdata* self = static_cast<MyClonableUserdata*>(lua_touserdata(L, 1)); |
180 | lua_pushfstring(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); | 180 | std::ignore = luaG_pushstringview(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); |
181 | return 1; | 181 | return 1; |
182 | } | 182 | } |
183 | 183 | ||