From a96fb6b1d00e5fded55fa541a88a99844772ac36 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 4 Apr 2025 17:43:07 +0200 Subject: Fix 32 bits compilation warnings --- src/intercopycontext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp index d6716a3..93a8160 100644 --- a/src/intercopycontext.cpp +++ b/src/intercopycontext.cpp @@ -770,7 +770,7 @@ bool InterCopyContext::tryCopyClonable() const // we need to copy over the uservalues of the userdata as well { StackIndex const _mt{ luaG_absindex(L1, StackIndex{ -2 }) }; // L1: ... mt __lanesclone - size_t const userdata_size{ lua_rawlen(L1, _L1_i) }; + auto const userdata_size{ static_cast(lua_rawlen(L1, _L1_i)) }; // make 32-bits builds happy // extract all the uservalues, but don't transfer them yet UserValueCount const _nuv{ luaG_getalluservalues(L1, _L1_i) }; // L1: ... mt __lanesclone [uv]* // create the clone userdata with the required number of uservalue slots @@ -930,7 +930,7 @@ bool InterCopyContext::interCopyFunction() const _source = lua_touserdata(L1, -1); void* _clone{ nullptr }; // get the number of bytes to allocate for the clone - size_t const _userdata_size{ lua_rawlen(L1, kIdxTop) }; + auto const _userdata_size{ static_cast(lua_rawlen(L1, kIdxTop)) }; // make 32-bits builds happy { // extract uservalues (don't transfer them yet) UserValueCount const _nuv{ luaG_getalluservalues(L1, source_i) }; // L1: ... u [uv]* -- cgit v1.2.3-55-g6feb