aboutsummaryrefslogtreecommitdiff
path: root/src/intercopycontext.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 14:37:17 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-24 14:37:17 +0200
commit958ed4f1e29418e90f3dd3de6779e30e05f70448 (patch)
tree01f42e0fa04b3fd806accfdc6d912fc7f99cd12f /src/intercopycontext.cpp
parenteba98e4e1adcf3ce11e5934e2dce54f29aef1e0a (diff)
downloadlanes-958ed4f1e29418e90f3dd3de6779e30e05f70448.tar.gz
lanes-958ed4f1e29418e90f3dd3de6779e30e05f70448.tar.bz2
lanes-958ed4f1e29418e90f3dd3de6779e30e05f70448.zip
More strong typing for UniqueKey::getSubTable() arguments
Diffstat (limited to 'src/intercopycontext.cpp')
-rw-r--r--src/intercopycontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp
index 5f3ce7d..7244ed8 100644
--- a/src/intercopycontext.cpp
+++ b/src/intercopycontext.cpp
@@ -148,7 +148,7 @@ static constexpr RegistryUniqueKey kMtIdRegKey{ 0xA8895DCF4EC3FE3Cull };
148 STACK_GROW(L_, 3); 148 STACK_GROW(L_, 3);
149 149
150 STACK_CHECK_START_REL(L_, 0); 150 STACK_CHECK_START_REL(L_, 0);
151 std::ignore = kMtIdRegKey.getSubTable(L_, 0, 0); // L_: ... _R[kMtIdRegKey] 151 std::ignore = kMtIdRegKey.getSubTable(L_, NArr{ 0 }, NRec{ 0 }); // L_: ... _R[kMtIdRegKey]
152 lua_pushvalue(L_, _absidx); // L_: ... _R[kMtIdRegKey] {mt} 152 lua_pushvalue(L_, _absidx); // L_: ... _R[kMtIdRegKey] {mt}
153 lua_rawget(L_, -2); // L_: ... _R[kMtIdRegKey] mtk? 153 lua_rawget(L_, -2); // L_: ... _R[kMtIdRegKey] mtk?
154 154
@@ -599,7 +599,7 @@ LuaType InterCopyContext::processConversion() const
599 STACK_CHECK_START_REL(L2, 0); 599 STACK_CHECK_START_REL(L2, 0);
600 STACK_GROW(L2, 4); 600 STACK_GROW(L2, 4);
601 // do we already know this metatable? 601 // do we already know this metatable?
602 std::ignore = kMtIdRegKey.getSubTable(L2, 0, 0); // L2: _R[kMtIdRegKey] 602 std::ignore = kMtIdRegKey.getSubTable(L2, NArr{ 0 }, NRec{ 0 }); // L2: _R[kMtIdRegKey]
603 lua_pushinteger(L2, _mt_id); // L2: _R[kMtIdRegKey] id 603 lua_pushinteger(L2, _mt_id); // L2: _R[kMtIdRegKey] id
604 lua_rawget(L2, -2); // L2: _R[kMtIdRegKey] mt|nil 604 lua_rawget(L2, -2); // L2: _R[kMtIdRegKey] mt|nil
605 STACK_CHECK(L2, 2); 605 STACK_CHECK(L2, 2);