summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-12 17:47:06 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-06-12 17:47:06 (GMT)
commit8e5effaaa416bef3bbaf1d19171eef0d4b3401ba (patch)
tree13e097cdd89146ffbf190731204509d674aeb4d1
parent10f08f9599f3ff48c1ad1b0b10cabf722ba8eb5a (diff)
downloadcpython-8e5effaaa416bef3bbaf1d19171eef0d4b3401ba.zip
cpython-8e5effaaa416bef3bbaf1d19171eef0d4b3401ba.tar.gz
cpython-8e5effaaa416bef3bbaf1d19171eef0d4b3401ba.tar.bz2
fix warning with ucs4
-rw-r--r--Objects/unicodeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index ae26ab6..0e378a5 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -2208,10 +2208,11 @@ PyUnicode_DecodeUTF32Stateful(const char *s,
Py_UNICODE *p;
#ifndef Py_UNICODE_WIDE
int pairs = 0;
+ const unsigned char *qq;
#else
const int pairs = 0;
#endif
- const unsigned char *q, *e, *qq;
+ const unsigned char *q, *e;
int bo = 0; /* assume native ordering by default */
const char *errmsg = "";
/* Offsets from q for retrieving bytes in the right order. */