bpo-39605: Remove a cast that causes a warning. (GH-18473)

This commit is contained in:
Benjamin Peterson 2020-02-11 19:36:14 -08:00 committed by GitHub
parent e5bd73632e
commit 95905ce0f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)