mirror of https://github.com/python/cpython
bpo-39605: Remove a cast that causes a warning. (GH-18473)
This commit is contained in:
parent
e5bd73632e
commit
95905ce0f4
|
@ -3420,7 +3420,7 @@ PyUnicode_Decode(const char *s,
|
|||
|
||||
/* Decode via the codec registry */
|
||||
buffer = NULL;
|
||||
if (PyBuffer_FillInfo(&info, NULL, (const void *)s, size, 1, PyBUF_FULL_RO) < 0)
|
||||
if (PyBuffer_FillInfo(&info, NULL, (void *)s, size, 1, PyBUF_FULL_RO) < 0)
|
||||
goto onError;
|
||||
buffer = PyMemoryView_FromBuffer(&info);
|
||||
if (buffer == NULL)
|
||||
|
|
Loading…
Reference in New Issue