From d411240a04dbd111bdc89339a0675c8818ff2578 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Fri, 22 Sep 2023 08:47:16 -0400 Subject: DRTVWR-589: lua_objlen() removed, use lua_rawlen() instead --- indra/newview/llluamanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'indra') diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp index 0cf2157caf..9e46982b10 100644 --- a/indra/newview/llluamanager.cpp +++ b/indra/newview/llluamanager.cpp @@ -48,7 +48,6 @@ extern "C" { #include "lua/lua.h" -#include "lua/luaconf.h" #include "lua/lauxlib.h" #include "lua/lualib.h" } @@ -551,7 +550,7 @@ LLSD lua_tollsd(lua_State* L, int index) case LUA_TUSERDATA: { - LLSD::Binary binary(lua_objlen(L, index)); + LLSD::Binary binary(lua_rawlen(L, index)); std::memcpy(binary.data(), lua_touserdata(L, index), binary.size()); return binary; } @@ -605,7 +604,7 @@ LLSD lua_tollsd(lua_State* L, int index) { LLSD result{ LLSD::emptyArray() }; // right away expand the result array to the size we'll need - result[lua_objlen(L, index) - 1] = LLSD(); + result[lua_rawlen(L, index) - 1] = LLSD(); // track the consecutive indexes we require LLSD::Integer expected_index{ 0 }; do -- cgit v1.2.3