summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-22 08:47:16 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-22 08:47:16 -0400
commitd411240a04dbd111bdc89339a0675c8818ff2578 (patch)
tree99d5d0dee712e0677f8a028560b4892e539e7da0 /indra/newview
parent87d44a24d7ac6c1ac72e8b76ad66dcd890806f29 (diff)
DRTVWR-589: lua_objlen() removed, use lua_rawlen() instead
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llluamanager.cpp5
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