DRTVWR-575: Keep BufferArray::findBlock() in int domain.

master
Nat Goodspeed 2022-12-06 11:16:55 -05:00
parent c3ddd70920
commit 8ff81fc7a5
1 changed files with 1 additions and 1 deletions

View File

@ -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)