Navigation Menu

Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
Add a missing cast.

    lib/token.c:165:46: warning: passing
          'const unsigned char *' to parameter of type 'const char *' converts
          between pointers to integer types with different sign [-Wpointer-sign]
                                                 tokenizer->next,
                                                 ^~~~~~~~~~~~~~~
    include/groonga/tokenizer.h:195:82: note:
          passing argument to parameter 'str_ptr' here
      ...const char *str_ptr,
                     ^
  • Loading branch information
kou committed Jun 11, 2013
1 parent e68275e commit 4aac7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/token.c
Expand Up @@ -162,7 +162,7 @@ delimited_next(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data
tokenizer->next =
grn_tokenizer_tokenized_delimiter_next(ctx,
&(tokenizer->token),
tokenizer->next,
(const char *)tokenizer->next,
rest_length,
tokenizer->query->encoding);
} else {
Expand Down

0 comments on commit 4aac7ef

Please sign in to comment.