diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2023-09-22 08:47:16 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2023-09-22 08:47:16 -0400 |
commit | d411240a04dbd111bdc89339a0675c8818ff2578 (patch) | |
tree | 99d5d0dee712e0677f8a028560b4892e539e7da0 /indra | |
parent | 87d44a24d7ac6c1ac72e8b76ad66dcd890806f29 (diff) |
DRTVWR-589: lua_objlen() removed, use lua_rawlen() instead
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llluamanager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 |