summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-02-11 19:52:46 -0800
committerGitHub <noreply@github.com>2020-02-11 19:52:46 -0800
commit0b8f738eb3ee0110461e7da28c0b6b452f91999d (patch)
tree3d0e4164843715d8b07cdef2f240c886300451ac
parented4d263e8767b0e4c47df99141b500d36ce0275d (diff)
downloadcpython-git-0b8f738eb3ee0110461e7da28c0b6b452f91999d.tar.gz
bpo-39605: Remove a cast that causes a warning. (GH-18473)
(cherry picked from commit 95905ce0f41fd42eb1ef60ddb83f057401c3d52f) Co-authored-by: Benjamin Peterson <benjamin@python.org>
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 8ba379e888..4c2b42f959 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -3353,7 +3353,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)