Skip to content

Commit

Permalink
more castifornication to eliminate innocuous warnings from the build.…
Browse files Browse the repository at this point in the history
… That whole unsigned char * decision really seemed like a good idea at the time... sheesh
  • Loading branch information
lloyd committed Nov 26, 2009
1 parent fa941bf commit 2d62fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yajl_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ yajl_string_encode2(const yajl_print_t print,
break;
}
if (escaped != NULL) {
print(ctx, str + beg, end - beg);
print(ctx, (const char *) (str + beg), end - beg);
print(ctx, escaped, strlen(escaped));
beg = ++end;
} else {
++end;
}
}
print(ctx, str + beg, end - beg);
print(ctx, (const char *) (str + beg), end - beg);
}

static void hexToDigit(unsigned int * val, const unsigned char * hex)
Expand Down

0 comments on commit 2d62fde

Please sign in to comment.