From d9761b65064cbc2c46120b0a2c2d2e025dbfb0f6 Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Thu, 13 Apr 2017 23:28:18 +0400 Subject: [PATCH] Update Block.cpp --- dbms/src/Core/Block.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Core/Block.cpp b/dbms/src/Core/Block.cpp index d26a6ba74bf..8e17dcc5ca1 100644 --- a/dbms/src/Core/Block.cpp +++ b/dbms/src/Core/Block.cpp @@ -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);