Update Block.cpp

This commit is contained in:
alexey-milovidov 2017-04-13 23:28:18 +04:00
parent d8e9e8fa99
commit d9761b6506

View File

@ -608,7 +608,7 @@ void Block::unshareColumns()
void Block::updateHash(SipHash & hash) const
{
for (size_t row_no = 0; row_no < rows(); ++row_no)
for (size_t row_no = 0, num_rows = rows(); row_no < num_rows; ++row_no)
{
for (auto & col : getColumns())
col.column->updateHashWithValue(row_no, hash);