From: Benjamin Peterson Date: Wed, 12 Feb 2020 03:36:14 +0000 (-0800) Subject: bpo-39605: Remove a cast that causes a warning. (GH-18473) X-Git-Tag: v3.9.0a4~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95905ce0f41fd42eb1ef60ddb83f057401c3d52f;p=thirdparty%2FPython%2Fcpython.git bpo-39605: Remove a cast that causes a warning. (GH-18473) --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index fdc2ca6612cc..8470e41624bd 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)