From 1cdb2a27973e05f5458047e895ca9e5d67ebd9a9 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 19 Apr 2017 06:11:26 +0300 Subject: [PATCH] Fixed error [#CLICKHOUSE-4]. --- dbms/src/Columns/ColumnsCommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Columns/ColumnsCommon.cpp b/dbms/src/Columns/ColumnsCommon.cpp index af1130b3e25..b541520ecd1 100644 --- a/dbms/src/Columns/ColumnsCommon.cpp +++ b/dbms/src/Columns/ColumnsCommon.cpp @@ -65,7 +65,7 @@ namespace ResultOffsetsBuilder(IColumn::Offsets_t * res_offsets_) : res_offsets(*res_offsets_) {} - void reserve(size_t result_size_hint, size_t src_size) + void reserve(ssize_t result_size_hint, size_t src_size) { res_offsets.reserve(result_size_hint > 0 ? result_size_hint : src_size); } @@ -108,7 +108,7 @@ namespace struct NoResultOffsetsBuilder { NoResultOffsetsBuilder(IColumn::Offsets_t * res_offsets_) {} - void reserve(size_t result_size_hint, size_t src_size) {} + void reserve(ssize_t result_size_hint, size_t src_size) {} void insertOne(size_t array_size) {} template