From 95905ce0f41fd42eb1ef60ddb83f057401c3d52f Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 11 Feb 2020 19:36:14 -0800 Subject: [PATCH] bpo-39605: Remove a cast that causes a warning. (GH-18473) --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index fdc2ca6612c..8470e41624b 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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)