Skip to content

Commit

Permalink
bpo-39605: Remove a cast that causes a warning. (GH-18473)
Browse files Browse the repository at this point in the history
(cherry picked from commit 95905ce)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
  • Loading branch information
miss-islington and benjaminp committed Feb 12, 2020
1 parent ed4d263 commit 0b8f738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b8f738

Please sign in to comment.