aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compat.h2
-rw-r--r--src/intercopycontext.cpp2
-rw-r--r--src/lindafactory.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/compat.h b/src/compat.h
index 7049f3d..41c8ea9 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -328,7 +328,7 @@ template <typename T>
328{ 328{
329 size_t _len{ 0 }; 329 size_t _len{ 0 };
330 char const* _str{ lua_tolstring(L_, idx_, &_len) }; 330 char const* _str{ lua_tolstring(L_, idx_, &_len) };
331 return _str ? std::string_view{ _str, _len } : "<not a string>"; 331 return _str ? std::string_view{ _str, _len } : "";
332} 332}
333 333
334[[nodiscard]] inline std::string_view luaG_checkstring(lua_State* const L_, int const idx_) 334[[nodiscard]] inline std::string_view luaG_checkstring(lua_State* const L_, int const idx_)
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp
index 85c1ebb..4d3aaac 100644
--- a/src/intercopycontext.cpp
+++ b/src/intercopycontext.cpp
@@ -1326,7 +1326,7 @@ namespace {
1326 STACK_CHECK(L2, n_ + 1); 1326 STACK_CHECK(L2, n_ + 1);
1327 // Remove the cache table. Persistent caching would cause i.e. multiple 1327 // Remove the cache table. Persistent caching would cause i.e. multiple
1328 // messages passed in the same table to use the same table also in receiving end. 1328 // messages passed in the same table to use the same table also in receiving end.
1329 lua_remove(L2, _top_L2 + 1); // L2: ... {}n 1329 lua_remove(L2, _c.L2_cache_i); // L2: ... {}n
1330 return InterCopyResult::Success; 1330 return InterCopyResult::Success;
1331 } 1331 }
1332 1332
diff --git a/src/lindafactory.cpp b/src/lindafactory.cpp
index 771a4c3..d5ebc9b 100644
--- a/src/lindafactory.cpp
+++ b/src/lindafactory.cpp
@@ -105,7 +105,7 @@ std::string_view LindaFactory::moduleName() const
105DeepPrelude* LindaFactory::newDeepObjectInternal(lua_State* const L_) const 105DeepPrelude* LindaFactory::newDeepObjectInternal(lua_State* const L_) const
106{ 106{
107 // we always expect name and group at the bottom of the stack (either can be nil). any extra stuff we ignore and keep unmodified 107 // we always expect name and group at the bottom of the stack (either can be nil). any extra stuff we ignore and keep unmodified
108 std::string_view _linda_name{ lua_isnil(L_, 1) ? "" : luaG_tostring(L_, 1) }; 108 std::string_view _linda_name{ luaG_tostring(L_, 1) };
109 LindaGroup _linda_group{ static_cast<int>(lua_tointeger(L_, 2)) }; 109 LindaGroup _linda_group{ static_cast<int>(lua_tointeger(L_, 2)) };
110 110
111 // store in the linda the location of the script that created it 111 // store in the linda the location of the script that created it