From ea94590a2c7e3fb8a0f10f69a66864d79c8241d5 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 7 Jun 2024 11:50:15 +0200 Subject: Fix deep_test.cpp --- deep_test/deep_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deep_test/deep_test.cpp b/deep_test/deep_test.cpp index 04eb98c..812019a 100644 --- a/deep_test/deep_test.cpp +++ b/deep_test/deep_test.cpp @@ -58,7 +58,7 @@ void MyDeepFactory::deleteDeepObjectInternal(lua_State* const L_, DeepPrelude* c { MyDeepUserdata* const _self{ static_cast(MyDeepFactory::Instance.toDeep(L, 1)) }; _self->inUse.fetch_add(1, std::memory_order_seq_cst); - std::ignore = luaG_pushstringview(L, "%p:deep(%d)", lua_topointer(L, 1), _self->val); + std::ignore = luaG_pushstring(L, "%p:deep(%d)", lua_topointer(L, 1), _self->val); _self->inUse.fetch_sub(1, std::memory_order_seq_cst); return 1; } @@ -178,7 +178,7 @@ struct MyClonableUserdata [[nodiscard]] static int clonable_tostring(lua_State* L) { MyClonableUserdata* self = static_cast(lua_touserdata(L, 1)); - std::ignore = luaG_pushstringview(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); + std::ignore = luaG_pushstring(L, "%p:clonable(%d)", lua_topointer(L, 1), self->val); return 1; } -- cgit v1.2.3-55-g6feb