From 5c8c3bdde079d237534686c47c2b230fc2fbdf4f Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 29 Oct 2017 08:52:41 +0300 Subject: [PATCH] Fixed build on Mac OS X [#CLICKHOUSE-2]. --- dbms/src/Functions/FunctionsMiscellaneous.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Functions/FunctionsMiscellaneous.cpp b/dbms/src/Functions/FunctionsMiscellaneous.cpp index f3ecc1d15f6..6764a87cc5f 100644 --- a/dbms/src/Functions/FunctionsMiscellaneous.cpp +++ b/dbms/src/Functions/FunctionsMiscellaneous.cpp @@ -251,9 +251,9 @@ public: void executeImpl(Block & block, const ColumnNumbers & arguments, size_t result) override { if (auto type = checkAndGetDataType(block.getByPosition(arguments[0]).type.get())) - block.getByPosition(result).column = DataTypeUInt8().createConstColumn(block.rows(), type->getValues().size()); + block.getByPosition(result).column = DataTypeUInt8().createConstColumn(block.rows(), UInt64(type->getValues().size())); else if (auto type = checkAndGetDataType(block.getByPosition(arguments[0]).type.get())) - block.getByPosition(result).column = DataTypeUInt16().createConstColumn(block.rows(), type->getValues().size()); + block.getByPosition(result).column = DataTypeUInt16().createConstColumn(block.rows(), UInt64(type->getValues().size())); else throw Exception("The argument for function " + getName() + " must be Enum", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT); }