susumu.yata
null+****@clear*****
Tue Oct 14 11:47:08 JST 2014
susumu.yata 2014-10-14 11:47:08 +0900 (Tue, 14 Oct 2014) New Revision: 72f0fa80e3ac55970d16aea3adce4222638383dc https://github.com/groonga/groonga/commit/72f0fa80e3ac55970d16aea3adce4222638383dc Message: Fix a bug that html mapping fails if char is unsigned GitHub: fixes #218 Modified files: lib/snip.c Modified: lib/snip.c (+1 -1) =================================================================== --- lib/snip.c 2014-10-14 11:42:26 +0900 (f5ed677) +++ lib/snip.c 2014-10-14 11:47:08 +0900 (78c6ef5) @@ -434,7 +434,7 @@ grn_snip_find_firstbyte(const char *string, grn_encoding encoding, size_t offset offset += doffset; break; case GRN_ENC_UTF8: - while (string[offset] <= (char)0xc0) + while ((signed char)string[offset] <= (signed char)0xc0) offset += doffset; break; default: -------------- next part -------------- HTML����������������������������...Télécharger