diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2022-12-06 11:16:55 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2022-12-06 11:16:55 -0500 |
commit | 8ff81fc7a5ffe9122dac4ceb705908cbf0361095 (patch) | |
tree | f81b2d19158b701d4899ab298ddc236974348529 /indra | |
parent | c3ddd7092085a204b6241dc027c70972b08ee202 (diff) |
DRTVWR-575: Keep BufferArray::findBlock() in int domain.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llcorehttp/bufferarray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcorehttp/bufferarray.cpp b/indra/llcorehttp/bufferarray.cpp index 4c680fdb56..8d2e7c6a63 100644 --- a/indra/llcorehttp/bufferarray.cpp +++ b/indra/llcorehttp/bufferarray.cpp @@ -288,7 +288,7 @@ int BufferArray::findBlock(size_t pos, size_t * ret_offset) if (pos >= mLen) return -1; // Doesn't exist - const auto block_limit(mBlocks.size()); + const int block_limit(narrow(mBlocks.size())); for (int i(0); i < block_limit; ++i) { if (pos < mBlocks[i]->mUsed) |