[Python-checkins] bpo-39605: Remove a cast that causes a warning. (GH-18473)

Benjamin Peterson webhook-mailer at python.org
Tue Feb 11 22:36:22 EST 2020


https://github.com/python/cpython/commit/95905ce0f41fd42eb1ef60ddb83f057401c3d52f
commit: 95905ce0f41fd42eb1ef60ddb83f057401c3d52f
branch: master
author: Benjamin Peterson <benjamin at python.org>
committer: GitHub <noreply at github.com>
date: 2020-02-11T19:36:14-08:00
summary:

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

files:
M Objects/unicodeobject.c

diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index fdc2ca6612cc5..8470e41624bd4 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)



More information about the Python-checkins mailing list