Susumu Yata
null+****@clear*****
Tue Jul 18 16:10:53 JST 2017
Susumu Yata 2017-07-18 16:10:53 +0900 (Tue, 18 Jul 2017) New Revision: d111eb74190a9712d74dc0bf58b7475cc36dc515 https://github.com/groonga/groonga/commit/d111eb74190a9712d74dc0bf58b7475cc36dc515 Message: tokenizers/mecab: cast the argument of isspace from char to unsigned char GitHub: #742 Modified files: plugins/tokenizers/mecab.c Modified: plugins/tokenizers/mecab.c (+1 -1) =================================================================== --- plugins/tokenizers/mecab.c 2017-07-18 16:10:00 +0900 (dfefb92) +++ plugins/tokenizers/mecab.c 2017-07-18 16:10:53 +0900 (eeb027a) @@ -170,7 +170,7 @@ chunked_tokenize_utf8_chunk(grn_ctx *ctx, tokenized_chunk_length = strlen(tokenized_chunk); if (tokenized_chunk_length >= 1 && - isspace(tokenized_chunk[tokenized_chunk_length - 1])) { + isspace((unsigned char)tokenized_chunk[tokenized_chunk_length - 1])) { GRN_TEXT_PUT(ctx, &(tokenizer->buf), tokenized_chunk, tokenized_chunk_length - 1); } else { -------------- next part -------------- HTML����������������������������... Télécharger