Navigation Menu

Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
Use uint32_t for length.

    lib/token.c:286:29: warning: passing 'int32_t *'
          (aka 'int *') to parameter of type 'unsigned int *' converts between
          pointers to integer types with different sign [-Wpointer-sign]
                                &(tokenizer->len));
                                ^~~~~~~~~~~~~~~~~
  • Loading branch information
kou committed Jun 11, 2013
1 parent 7644b01 commit d19b048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/token.c
Expand Up @@ -238,7 +238,7 @@ typedef struct {
const unsigned char *next;
const unsigned char *end;
const uint_least8_t *ctypes;
int32_t len;
uint32_t len;
uint32_t tail;
} grn_ngram_tokenizer;

Expand Down

0 comments on commit d19b048

Please sign in to comment.