mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
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
Block a user