[Python-checkins] bpo-39605: Remove a cast that causes a warning. (GH-18473)
Miss Islington (bot)
webhook-mailer at python.org
Tue Feb 11 22:52:54 EST 2020
https://github.com/python/cpython/commit/0b8f738eb3ee0110461e7da28c0b6b452f91999d
commit: 0b8f738eb3ee0110461e7da28c0b6b452f91999d
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-02-11T19:52:46-08:00
summary:
bpo-39605: Remove a cast that causes a warning. (GH-18473)
(cherry picked from commit 95905ce0f41fd42eb1ef60ddb83f057401c3d52f)
Co-authored-by: Benjamin Peterson <benjamin at python.org>
files:
M Objects/unicodeobject.c
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 8ba379e8887e9..4c2b42f959b83 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)
More information about the Python-checkins
mailing list