summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-25 22:28:58 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-25 22:28:58 -0400
commitf48dd40db06d15e5da7fd3a98324e284a0640b2d (patch)
treee8cc2a9fc7622e77f9ee1950aef5bdaf2a42ea1e /indra/llmath
parent339107e4a3260c5ad564cb0325d94d166a27a8a5 (diff)
DRTVWR-589: Fix Lua table to LLSD array conversion.
The previous implementation assumed that the Lua length function would correctly report the number of entries in a table, and that traversing a table with integer keys would produce them in numeric order. Neither assumption is true. Instead, make a preliminary pass to validate and collect indexes, and to discover the highest integer index. Armed with that, we can construct a contiguous LLSD array of correct size, and populate it with a second pass. Also add Lua-callable post_on_pump(pumpname, datablob) function.
Diffstat (limited to 'indra/llmath')
0 files changed, 0 insertions, 0 deletions