1
0
Fork 0

fix compilation on mac (#10505)

* fix compilation on mac

* fix another error
This commit is contained in:
Andrey Abramov 2019-11-22 09:36:42 +03:00 committed by GitHub
parent e5d6b837b9
commit 6e350d9c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ bool parse_json_config(const irs::string_ref& args,
stream_bytes_type = itr->second;
}
min = std::max(min, size_t(1));
min = std::max(min, decltype(min)(1));
max = std::max(max, min);
options.min_gram = min;

View File

@ -323,7 +323,7 @@ bool parse_ngram_vpack_config(const irs::string_ref& args, irs::analysis::ngram_
options.stream_bytes_type = itr->second;
}
min = std::max(min, size_t(1));
min = std::max(min, decltype(min)(1));
max = std::max(max, min);
options.min_gram = min;