Navigation Menu

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:703:28: warning: assigning to
          'char *' from 'unsigned char *' converts between pointers to integer types
          with different sign [-Wpointer-sign]
              nstr->normalized = normalized;
                               ^ ~~~~~~~~~~
  • Loading branch information
kou committed Jun 11, 2013
1 parent 14236a8 commit 10183b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/normalizer.c
Expand Up @@ -700,7 +700,7 @@ utf8_normalize(grn_ctx *ctx, grn_string *nstr)
}
de = normalized + ds;
d = normalized + (d - (unsigned char *)nstr->normalized);
nstr->normalized = normalized;
nstr->normalized = (char *)normalized;
if (ch) {
int16_t *checks;
if (!(checks = GRN_REALLOC(nstr->checks, ds * sizeof(int16_t) + 1))) {
Expand Down

0 comments on commit 10183b5

Please sign in to comment.