summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Trevor Hilaiel <lloyd@hilaiel.com>2009-11-25 22:22:21 -0700
committerLloyd Trevor Hilaiel <lloyd@hilaiel.com>2009-11-25 22:22:21 -0700
commit2d62fde6ef4247b57d5eb3756dcceeb34216ebb9 (patch)
tree5b8217126034bb93990478f0c2a563cff3e1cb10
parentfa941bf0cab08f8b952206259969b165b2a8f9ff (diff)
downloadyajl-2d62fde6ef4247b57d5eb3756dcceeb34216ebb9.tar.gz
more castifornication to eliminate innocuous warnings from the build. That whole unsigned char * decision really seemed like a good idea at the time... sheesh
-rw-r--r--src/yajl_encode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yajl_encode.c b/src/yajl_encode.c
index 9fbf502..c3b02ed 100644
--- a/src/yajl_encode.c
+++ b/src/yajl_encode.c
@@ -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)