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

Skip to content

Commit 0b79b76

Browse files
author
Victor Stinner
committed
Merged revisions 80384 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r80384 | victor.stinner | 2010-04-22 22:01:57 +0200 (jeu., 22 avril 2010) | 2 lines Fix my previous commit (r80382) for wide build (unicodeobject.c) ........
1 parent 158701d commit 0b79b76

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Objects/unicodeobject.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,9 +2481,8 @@ PyUnicode_EncodeUTF8(const Py_UNICODE *s,
24812481
*p++ = (char)(0x80 | ((ch >> 12) & 0x3f));
24822482
*p++ = (char)(0x80 | ((ch >> 6) & 0x3f));
24832483
*p++ = (char)(0x80 | (ch & 0x3f));
2484-
2485-
#endif
24862484
} else {
2485+
#endif
24872486
Py_ssize_t newpos;
24882487
PyObject *rep;
24892488
Py_ssize_t repsize, k;
@@ -2543,7 +2542,9 @@ PyUnicode_EncodeUTF8(const Py_UNICODE *s,
25432542
}
25442543
}
25452544
Py_DECREF(rep);
2545+
#ifndef Py_UNICODE_WIDE
25462546
}
2547+
#endif
25472548
} else if (ch < 0x10000) {
25482549
*p++ = (char)(0xe0 | (ch >> 12));
25492550
*p++ = (char)(0x80 | ((ch >> 6) & 0x3f));

0 commit comments

Comments
 (0)