Skip to content

Commit 6caa6fb

Browse files
committed
(Merge 3.3) Issue #8271: Fix compilation on Windows
2 parents 944099f + ab60de4 commit 6caa6fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/stringlib/codecs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ STRINGLIB(utf8_decode)(const char **inptr, const char *end,
9393

9494
if (ch < 0xE0) {
9595
/* \xC2\x80-\xDF\xBF -- 0080-07FF */
96+
Py_UCS4 ch2;
9697
if (ch < 0xC2) {
9798
/* invalid sequence
9899
\x80-\xBF -- continuation byte
99100
\xC0-\xC1 -- fake 0000-007F */
100101
goto InvalidStart;
101102
}
102-
Py_UCS4 ch2;
103103
if (end - s < 2) {
104104
/* unexpected end of data: the caller will decide whether
105105
it's an error or not */

0 commit comments

Comments
 (0)