This commit is contained in:
myrrc 2020-12-17 18:47:14 +03:00
parent 9d5998fd10
commit 0d319c8c61

View File

@ -551,13 +551,13 @@ class FunctionBinaryArithmetic : public IFunction
static bool castBothTypes(const IDataType * left, const IDataType * right, F && f) static bool castBothTypes(const IDataType * left, const IDataType * right, F && f)
{ {
const bool l = castType(left, [](const auto& c){ const bool l = castType(left, [](const auto& c){
assert(std::is_same_v<decltype(c), Decimal32>); assert((std::is_same_v<decltype(c), Decimal32>));
}); });
assert(l); assert(l);
const bool r = castType(right, [](const auto& c){ const bool r = castType(right, [](const auto& c){
assert(std::is_same_v<decltype(c), Float32>); assert((std::is_same_v<decltype(c), Float32>));
}); });
assert(r); assert(r);