diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-11-04 22:59:15 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-11-04 22:59:15 (GMT) |
commit | ab60de478d70650a7a786d0d4a10ef6dcf1c2880 (patch) | |
tree | 378469fc29afe20db96ed6f5dfcd97d3f29b7c88 /Objects/stringlib/codecs.h | |
parent | 570942e20816741e255fc89e707008d152133f88 (diff) | |
download | cpython-ab60de478d70650a7a786d0d4a10ef6dcf1c2880.zip cpython-ab60de478d70650a7a786d0d4a10ef6dcf1c2880.tar.gz cpython-ab60de478d70650a7a786d0d4a10ef6dcf1c2880.tar.bz2 |
Issue #8271: Fix compilation on Windows
Diffstat (limited to 'Objects/stringlib/codecs.h')
-rw-r--r-- | Objects/stringlib/codecs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/codecs.h b/Objects/stringlib/codecs.h index e9a772c..f353367 100644 --- a/Objects/stringlib/codecs.h +++ b/Objects/stringlib/codecs.h @@ -93,13 +93,13 @@ STRINGLIB(utf8_decode)(const char **inptr, const char *end, if (ch < 0xE0) { /* \xC2\x80-\xDF\xBF -- 0080-07FF */ + Py_UCS4 ch2; if (ch < 0xC2) { /* invalid sequence \x80-\xBF -- continuation byte \xC0-\xC1 -- fake 0000-007F */ goto InvalidStart; } - Py_UCS4 ch2; if (end - s < 2) { /* unexpected end of data: the caller will decide whether it's an error or not */ |