diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 08:27:24 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-28 08:27:24 (GMT) |
commit | 20b39b27d96b7c068f364ea79584feaa70fd15b6 (patch) | |
tree | 8a37818cb0163a3f5cab0e04d36223cdc190e0f5 /Modules/cjkcodecs | |
parent | 131caba074ae6d72dd795ca9a61f17c45c1a3349 (diff) | |
download | cpython-20b39b27d96b7c068f364ea79584feaa70fd15b6.zip cpython-20b39b27d96b7c068f364ea79584feaa70fd15b6.tar.gz cpython-20b39b27d96b7c068f364ea79584feaa70fd15b6.tar.bz2 |
Removed redundant casts to `char *`.
Corresponding functions now accept `const char *` (issue #1772673).
Diffstat (limited to 'Modules/cjkcodecs')
-rw-r--r-- | Modules/cjkcodecs/cjkcodecs.h | 2 | ||||
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index 25bab41..4cd2088 100644 --- a/Modules/cjkcodecs/cjkcodecs.h +++ b/Modules/cjkcodecs/cjkcodecs.h @@ -362,7 +362,7 @@ importmap(const char *modname, const char *symbol, if (mod == NULL) return -1; - o = PyObject_GetAttrString(mod, (char*)symbol); + o = PyObject_GetAttrString(mod, symbol); if (o == NULL) goto errorexit; else if (!PyCapsule_IsValid(o, PyMultibyteCodec_CAPSULE_NAME)) { diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c index 74ecafd..31bb35f 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; |