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:494:15: warning: assigning to
          'const unsigned char *' from 'const char *' converts between pointers to
          integer types with different sign [-Wpointer-sign]
      token->orig = str;
                  ^ ~~~
  • Loading branch information
kou committed Jun 11, 2013
1 parent 293631b commit f5526e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/token.c
Expand Up @@ -491,7 +491,7 @@ grn_token_open(grn_ctx *ctx, grn_obj *table, const char *str, size_t str_len,
token->mode = mode;
token->encoding = encoding;
token->tokenizer = tokenizer;
token->orig = str;
token->orig = (const unsigned char *)str;
token->orig_blen = str_len;
token->curr = NULL;
token->nstr = NULL;
Expand Down

0 comments on commit f5526e7

Please sign in to comment.