[pypy-commit] pypy default: silence some compilation signedness warnings
bdkearns
noreply at buildbot.pypy.org
Thu Feb 7 06:30:53 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r60922:b31ca122767b
Date: 2013-02-07 00:17 -0500
http://bitbucket.org/pypy/pypy/changeset/b31ca122767b/
Log: silence some compilation signedness warnings
diff --git a/rpython/translator/c/src/cjkcodecs/multibytecodec.c b/rpython/translator/c/src/cjkcodecs/multibytecodec.c
--- a/rpython/translator/c/src/cjkcodecs/multibytecodec.c
+++ b/rpython/translator/c/src/cjkcodecs/multibytecodec.c
@@ -21,9 +21,9 @@
Py_ssize_t pypy_cjk_dec_init(struct pypy_cjk_dec_s *d,
char *inbuf, Py_ssize_t inlen)
{
- d->inbuf_start = inbuf;
- d->inbuf = inbuf;
- d->inbuf_end = inbuf + inlen;
+ d->inbuf_start = (unsigned char *)inbuf;
+ d->inbuf = (unsigned char *)inbuf;
+ d->inbuf_end = (unsigned char *)inbuf + inlen;
if (d->outbuf_start == NULL)
{
d->outbuf_start = (inlen <= (PY_SSIZE_T_MAX / sizeof(Py_UNICODE)) ?
@@ -219,7 +219,7 @@
char *pypy_cjk_enc_outbuf(struct pypy_cjk_enc_s *d)
{
- return d->outbuf_start;
+ return (char *)d->outbuf_start;
}
Py_ssize_t pypy_cjk_enc_outlen(struct pypy_cjk_enc_s *d)
More information about the pypy-commit
mailing list