Merge pull request #3709 from yandex/widechar_width_arm_build

Fixed build of "widechar_width" library on ARM [#CLICKHOUSE-2]
This commit is contained in:
alexey-milovidov 2018-11-30 17:29:47 +03:00 committed by GitHub
commit 560b513f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}