]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39605: Remove a cast that causes a warning. (GH-18473)
authorBenjamin Peterson <benjamin@python.org>
Wed, 12 Feb 2020 03:36:14 +0000 (19:36 -0800)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2020 03:36:14 +0000 (19:36 -0800)
Objects/unicodeobject.c

index fdc2ca6612cc50c0b9453c53060f92dfc0eba08e..8470e41624bd44e1a36d0feaa5ece7de6a3e97f8 100644 (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)