aboutsummaryrefslogtreecommitdiff
path: root/src/intercopycontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/intercopycontext.cpp')
-rw-r--r--src/intercopycontext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp
index 473ebfd..f54c152 100644
--- a/src/intercopycontext.cpp
+++ b/src/intercopycontext.cpp
@@ -708,7 +708,7 @@ LuaType InterCopyContext::processConversion() const
708 StackIndex const _mt{ luaG_absindex(L1, StackIndex{ -2 }) }; // L1: ... mt __lanesclone 708 StackIndex const _mt{ luaG_absindex(L1, StackIndex{ -2 }) }; // L1: ... mt __lanesclone
709 size_t const userdata_size{ lua_rawlen(L1, _L1_i) }; 709 size_t const userdata_size{ lua_rawlen(L1, _L1_i) };
710 // extract all the uservalues, but don't transfer them yet 710 // extract all the uservalues, but don't transfer them yet
711 int const _nuv{ luaG_getalluservalues(L1, _L1_i) }; // L1: ... mt __lanesclone [uv]* 711 UserValueCount const _nuv{ luaG_getalluservalues(L1, _L1_i) }; // L1: ... mt __lanesclone [uv]*
712 // create the clone userdata with the required number of uservalue slots 712 // create the clone userdata with the required number of uservalue slots
713 void* const _clone{ lua_newuserdatauv(L2, userdata_size, _nuv) }; // L2: ... u 713 void* const _clone{ lua_newuserdatauv(L2, userdata_size, _nuv) }; // L2: ... u
714 // copy the metatable in the target state, and give it to the clone we put there 714 // copy the metatable in the target state, and give it to the clone we put there
@@ -785,7 +785,7 @@ LuaType InterCopyContext::processConversion() const
785 STACK_CHECK_START_REL(L2, 0); 785 STACK_CHECK_START_REL(L2, 0);
786 786
787 // extract all uservalues of the source. unfortunately, the only way to know their count is to iterate until we fail 787 // extract all uservalues of the source. unfortunately, the only way to know their count is to iterate until we fail
788 int const _nuv{ luaG_getalluservalues(L1, L1_i) }; // L1: ... deep ... [uv]* 788 UserValueCount const _nuv{ luaG_getalluservalues(L1, L1_i) }; // L1: ... deep ... [uv]*
789 STACK_CHECK(L1, _nuv); 789 STACK_CHECK(L1, _nuv);
790 790
791 DeepPrelude* const _deep{ *luaG_tofulluserdata<DeepPrelude*>(L1, L1_i) }; 791 DeepPrelude* const _deep{ *luaG_tofulluserdata<DeepPrelude*>(L1, L1_i) };
@@ -867,7 +867,7 @@ LuaType InterCopyContext::processConversion() const
867 size_t const _userdata_size{ lua_rawlen(L1, kIdxTop) }; 867 size_t const _userdata_size{ lua_rawlen(L1, kIdxTop) };
868 { 868 {
869 // extract uservalues (don't transfer them yet) 869 // extract uservalues (don't transfer them yet)
870 int const _nuv{ luaG_getalluservalues(L1, source_i) }; // L1: ... u [uv]* 870 UserValueCount const _nuv{ luaG_getalluservalues(L1, source_i) }; // L1: ... u [uv]*
871 STACK_CHECK(L1, _nuv + 1); 871 STACK_CHECK(L1, _nuv + 1);
872 // create the clone userdata with the required number of uservalue slots 872 // create the clone userdata with the required number of uservalue slots
873 _clone = lua_newuserdatauv(L2, _userdata_size, _nuv); // L2: ... mt u 873 _clone = lua_newuserdatauv(L2, _userdata_size, _nuv); // L2: ... mt u