diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 11:27:24 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 11:27:24 +0300 |
commit | 8cbd503f52fac32926312dd3476a4580dfbe6daa (patch) | |
tree | f0bdad374debc4ebcc452222a176deec293c56fa /Modules/cjkcodecs/multibytecodec.c | |
parent | 9f6d459fbd1d32957566bc4ec51a988b35b6808d (diff) | |
download | cpython-8cbd503f52fac32926312dd3476a4580dfbe6daa.tar.gz |
Removed redundant casts to `char *`.
Corresponding functions now accept `const char *` (issue #1772673).
Diffstat (limited to 'Modules/cjkcodecs/multibytecodec.c')
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 74ecafd3d6..31bb35fede 100644 --- a/Modules/cjkcodecs/multibytecodec.c +++ b/Modules/cjkcodecs/multibytecodec.c @@ -1269,10 +1269,10 @@ mbstreamreader_iread(MultibyteStreamReaderObject *self, if (sizehint < 0) cres = PyObject_CallMethod(self->stream, - (char *)method, NULL); + method, NULL); else cres = PyObject_CallMethod(self->stream, - (char *)method, "i", sizehint); + method, "i", sizehint); if (cres == NULL) goto errorexit; |