Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
Use signed "char *" for string.

    lib/normalizer.c:660:51: warning: passing
          'const unsigned char *' to parameter of type 'const char *' converts
          between pointers to integer types with different sign [-Wpointer-sign]
            grn_tokenizer_is_tokenized_delimiter(ctx, s, ls, GRN_ENC_UTF8)) {
                                                      ^
    include/groonga/tokenizer.h:59:59: note: passing
          argument to parameter 'str_ptr' here
                                                  const char *str_ptr,
                                                              ^
  • Loading branch information
kou committed Jun 11, 2013
1 parent 4231375 commit 14236a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/normalizer.c
Expand Up @@ -657,7 +657,8 @@ utf8_normalize(grn_ctx *ctx, grn_string *nstr)
break;
}
if (remove_tokenized_delimiter_p &&
grn_tokenizer_is_tokenized_delimiter(ctx, s, ls, GRN_ENC_UTF8)) {
grn_tokenizer_is_tokenized_delimiter(ctx, (const char *)s, ls,
GRN_ENC_UTF8)) {
continue;
}
if ((p = (unsigned char *)grn_nfkc_map1(s))) {
Expand Down

0 comments on commit 14236a8

Please sign in to comment.