Update src/Functions/ascii.cpp

Co-authored-by: Vladimir C <vdimir@clickhouse.com>
This commit is contained in:
李扬 2022-10-26 18:18:15 +08:00 committed by GitHub
parent 48c37c52e6
commit c7e5eb756b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,10 @@ struct AsciiImpl
}
private:
static Int32 doAscii(const ColumnString::Chars & buf, size_t offset, size_t size) { return size ? static_cast<ReturnType>(buf[offset]) : 0; }
static Int32 doAscii(const ColumnString::Chars & buf, size_t offset, size_t size)
{
return size ? static_cast<ReturnType>(buf[offset]) : 0;
}
};
using FunctionAscii = FunctionStringOrArrayToT<AsciiImpl, AsciiName, AsciiImpl::ReturnType>;