mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
Removed redundant casts to char *
.
Corresponding functions now accept `const char *` (issue #1772673).
This commit is contained in:
parent
131caba074
commit
20b39b27d9
10 changed files with 17 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue