summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-12 17:47:06 +0000
committerBenjamin Peterson <benjamin@python.org>2010-06-12 17:47:06 +0000
commit7989c01efcf22e671e57688f0287610e64da9db3 (patch)
treeecf5ba6a9df4725ededa33ba432af1afd688929a /Objects
parent4291285395affbabe6a9f16dde29a6b207c4ed69 (diff)
downloadcpython-7989c01efcf22e671e57688f0287610e64da9db3.tar.gz
fix warning with ucs4
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index ae26ab60dc..0e378a5a40 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. */