[pypy-commit] pypy llvm-translation-backend: Remove modifications in multibytecodec.c/h - the compiler warning was silenced on default in another way.
Manuel Jacob
noreply at buildbot.pypy.org
Sat Jan 25 20:28:22 CET 2014
Author: Manuel Jacob
Branch: llvm-translation-backend
Changeset: r68944:ea4fb0492e4b
Date: 2014-01-25 20:22 +0100
http://bitbucket.org/pypy/pypy/changeset/ea4fb0492e4b/
Log: Remove modifications in multibytecodec.c/h - the compiler warning
was silenced on default in another way.
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
@@ -19,7 +19,7 @@
}
Py_ssize_t pypy_cjk_dec_init(struct pypy_cjk_dec_s *d,
- unsigned char *inbuf, Py_ssize_t inlen)
+ char *inbuf, Py_ssize_t inlen)
{
d->inbuf_start = (unsigned char *)inbuf;
d->inbuf = (unsigned char *)inbuf;
@@ -217,7 +217,7 @@
}
}
-unsigned char *pypy_cjk_enc_outbuf(struct pypy_cjk_enc_s *d)
+char *pypy_cjk_enc_outbuf(struct pypy_cjk_enc_s *d)
{
return (char *)d->outbuf_start;
}
diff --git a/rpython/translator/c/src/cjkcodecs/multibytecodec.h b/rpython/translator/c/src/cjkcodecs/multibytecodec.h
--- a/rpython/translator/c/src/cjkcodecs/multibytecodec.h
+++ b/rpython/translator/c/src/cjkcodecs/multibytecodec.h
@@ -97,7 +97,7 @@
struct pypy_cjk_dec_s *pypy_cjk_dec_new(const MultibyteCodec *codec);
Py_ssize_t pypy_cjk_dec_init(struct pypy_cjk_dec_s *d,
- unsigned char *inbuf, Py_ssize_t inlen);
+ char *inbuf, Py_ssize_t inlen);
void pypy_cjk_dec_free(struct pypy_cjk_dec_s *);
Py_ssize_t pypy_cjk_dec_chunk(struct pypy_cjk_dec_s *);
Py_UNICODE *pypy_cjk_dec_outbuf(struct pypy_cjk_dec_s *);
@@ -120,7 +120,7 @@
void pypy_cjk_enc_free(struct pypy_cjk_enc_s *);
Py_ssize_t pypy_cjk_enc_chunk(struct pypy_cjk_enc_s *, Py_ssize_t);
Py_ssize_t pypy_cjk_enc_reset(struct pypy_cjk_enc_s *);
-unsigned char *pypy_cjk_enc_outbuf(struct pypy_cjk_enc_s *);
+char *pypy_cjk_enc_outbuf(struct pypy_cjk_enc_s *);
Py_ssize_t pypy_cjk_enc_outlen(struct pypy_cjk_enc_s *);
Py_ssize_t pypy_cjk_enc_inbuf_remaining(struct pypy_cjk_enc_s *d);
Py_ssize_t pypy_cjk_enc_inbuf_consumed(struct pypy_cjk_enc_s* d);
More information about the pypy-commit
mailing list