summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/codecs.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-11-04 23:00:50 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-11-04 23:00:50 (GMT)
commit6caa6fb535e9a7d4a91d48e7806de04c5491b33c (patch)
tree9a91ffbaa54be985145566b1382a5693863d1940 /Objects/stringlib/codecs.h
parent944099ff16108e4e03f59b131298fc7c4da64baf (diff)
parentab60de478d70650a7a786d0d4a10ef6dcf1c2880 (diff)
downloadcpython-6caa6fb535e9a7d4a91d48e7806de04c5491b33c.zip
cpython-6caa6fb535e9a7d4a91d48e7806de04c5491b33c.tar.gz
cpython-6caa6fb535e9a7d4a91d48e7806de04c5491b33c.tar.bz2
(Merge 3.3) Issue #8271: Fix compilation on Windows
Diffstat (limited to 'Objects/stringlib/codecs.h')
-rw-r--r--Objects/stringlib/codecs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/codecs.h b/Objects/stringlib/codecs.h
index 5eab318..f855003 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 */