summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2020-02-12 03:36:14 (GMT)
committerGitHub <noreply@github.com>2020-02-12 03:36:14 (GMT)
commit95905ce0f41fd42eb1ef60ddb83f057401c3d52f (patch)
tree32c77a1b8b08f48b7878604dd4186801f73d5324 /Objects
parente5bd73632e77dc5ab0cab77e48e94ca5e354be8a (diff)
downloadcpython-95905ce0f41fd42eb1ef60ddb83f057401c3d52f.zip
cpython-95905ce0f41fd42eb1ef60ddb83f057401c3d52f.tar.gz
cpython-95905ce0f41fd42eb1ef60ddb83f057401c3d52f.tar.bz2
bpo-39605: Remove a cast that causes a warning. (GH-18473)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index fdc2ca6..8470e41 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)