From 99073887667c1741564698195a5fcd5d326ad79a Mon Sep 17 00:00:00 2001 From: proller Date: Mon, 4 Jun 2018 16:32:27 +0300 Subject: [PATCH] 32bit Compile fix --- dbms/src/Storages/MergeTree/MergeTreeBaseBlockInputStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Storages/MergeTree/MergeTreeBaseBlockInputStream.cpp b/dbms/src/Storages/MergeTree/MergeTreeBaseBlockInputStream.cpp index 9c0b96d6615..fe9cdfad26a 100644 --- a/dbms/src/Storages/MergeTree/MergeTreeBaseBlockInputStream.cpp +++ b/dbms/src/Storages/MergeTree/MergeTreeBaseBlockInputStream.cpp @@ -147,7 +147,7 @@ Block MergeTreeBaseBlockInputStream::readFromPart() } size_t recommended_rows = estimateNumRows(*task, task->range_reader); - size_t rows_to_read = std::max(1, std::min(max_block_size_rows, recommended_rows)); + size_t rows_to_read = std::max(static_cast(1), std::min(max_block_size_rows, recommended_rows)); auto read_result = task->range_reader.read(rows_to_read, task->mark_ranges);