mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix unicode_aswidechar() for 4b unicode and 2b wchar_t (AIX).
This commit is contained in:
parent
51c116223e
commit
ff3e5e3779
2 changed files with 7 additions and 1 deletions
|
@ -1267,7 +1267,7 @@ unicode_aswidechar(PyUnicodeObject *unicode,
|
|||
Py_ssize_t nchar;
|
||||
|
||||
u = PyUnicode_AS_UNICODE(unicode);
|
||||
uend = u + PyUnicode_GET_SIZE(u);
|
||||
uend = u + PyUnicode_GET_SIZE(unicode);
|
||||
if (w != NULL) {
|
||||
worig = w;
|
||||
wend = w + size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue