Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ce1b0d

Browse files
author
Victor Stinner
committed
Set Py_UNICODE_REPLACEMENT_CHARACTER type to Py_UCS4, instead of Py_UNICODE
1 parent e56717c commit 5ce1b0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ PyAPI_DATA(PyTypeObject) PyUnicodeIter_Type;
506506
Unicode character U+FFFD is the official REPLACEMENT CHARACTER in
507507
Unicode 3.0. */
508508

509-
#define Py_UNICODE_REPLACEMENT_CHARACTER ((Py_UNICODE) 0xFFFD)
509+
#define Py_UNICODE_REPLACEMENT_CHARACTER ((Py_UCS4) 0xFFFD)
510510

511511
/* === Public API ========================================================= */
512512

0 commit comments

Comments
 (0)