Fixed build of "widechar_width" library on ARM [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-11-30 16:37:36 +03:00
parent 078a192388
commit f59bf174d7

View File

@ -495,7 +495,7 @@ static const struct widechar_range widechar_widened_table[] = {
template<typename Collection>
bool widechar_in_table(const Collection &arr, int32_t c) {
auto where = std::lower_bound(std::begin(arr), std::end(arr), c,
[](widechar_range p, wchar_t c) { return p.hi < c; });
[](widechar_range p, int32_t c) { return p.hi < c; });
return where != std::end(arr) && where->lo <= c;
}