diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 8ba379e8887..4c2b42f959b 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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)