Only overflow block when align goes over block boundary instead of only hit it because load can be 0

This commit is contained in:
Jan 2021-04-15 17:08:51 +02:00
parent 12c2629061
commit 73eb76c991

View File

@ -89,7 +89,7 @@ void* XBlockInputStream::Alloc(const unsigned align)
Align(align);
if (m_block_offsets[block->m_index] >= block->m_buffer_size)
if (m_block_offsets[block->m_index] > block->m_buffer_size)
{
throw BlockOverflowException(block);
}