Fixed build [#CLICKHOUSE-31].

This commit is contained in:
Alexey Milovidov 2017-06-18 07:09:04 +03:00
parent b19f4d1a0e
commit 942c1dea21

View File

@ -73,7 +73,7 @@ bool ParserKeyword::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parse
const char * next_whitespace = find_first_symbols<' ', '\0'>(current_word, s_end); const char * next_whitespace = find_first_symbols<' ', '\0'>(current_word, s_end);
size_t word_length = next_whitespace - current_word; size_t word_length = next_whitespace - current_word;
if (word_length > end - pos) if (static_cast<ptrdiff_t>(word_length) > end - pos)
return false; return false;
if (strncasecmp(pos, current_word, word_length)) if (strncasecmp(pos, current_word, word_length))