Navigation Menu

Skip to content

Commit

Permalink
clang: suppress a warning
Browse files Browse the repository at this point in the history
    lib/str.c:503:22: warning: assigning to 'char *'
          from 'unsigned char *' converts between pointers to integer types with
          different sign [-Wpointer-sign]
              nstr->norm = norm;
                         ^ ~~~~
  • Loading branch information
kou committed Jun 11, 2013
1 parent 8f3e75b commit 99de271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/str.c
Expand Up @@ -500,7 +500,7 @@ normalize_utf8(grn_ctx *ctx, grn_str *nstr)
}
de = norm + ds;
d = norm + (d - (unsigned char *)nstr->norm);
nstr->norm = norm;
nstr->norm = (char *)norm;
if (ch) {
int16_t *checks;
if (!(checks = GRN_REALLOC(nstr->checks, ds * sizeof(int16_t)+ 1))) {
Expand Down

0 comments on commit 99de271

Please sign in to comment.