Skip to content

Commit 95905ce

Browse files
authored
bpo-39605: Remove a cast that causes a warning. (GH-18473)
1 parent e5bd736 commit 95905ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3420,7 +3420,7 @@ PyUnicode_Decode(const char *s,
34203420

34213421
/* Decode via the codec registry */
34223422
buffer = NULL;
3423-
if (PyBuffer_FillInfo(&info, NULL, (const void *)s, size, 1, PyBUF_FULL_RO) < 0)
3423+
if (PyBuffer_FillInfo(&info, NULL, (void *)s, size, 1, PyBUF_FULL_RO) < 0)
34243424
goto onError;
34253425
buffer = PyMemoryView_FromBuffer(&info);
34263426
if (buffer == NULL)

0 commit comments

Comments
 (0)