bpo-39605: Remove a cast that causes a warning. (GH-18473)
(cherry picked from commit 95905ce0f4
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
This commit is contained in:
parent
ed4d263e87
commit
0b8f738eb3
|
@ -3353,7 +3353,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