summaryrefslogtreecommitdiffstats
path: root/Modules/unicodedata.c
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-10-21 21:24:17 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-10-21 21:24:17 (GMT)
commit4837e39b0809680231e79007ee4e5836b82a9538 (patch)
tree95f4b19bfe07ef6b332b6c06a7d2b1ddac43248b /Modules/unicodedata.c
parent931b8aac8058cf2b0eb4349217893aaf16f23444 (diff)
downloadcpython-4837e39b0809680231e79007ee4e5836b82a9538.zip
cpython-4837e39b0809680231e79007ee4e5836b82a9538.tar.gz
cpython-4837e39b0809680231e79007ee4e5836b82a9538.tar.bz2
#12753: fix compilation on Windows.
Diffstat (limited to 'Modules/unicodedata.c')
-rw-r--r--Modules/unicodedata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index 82a711f..5032d42 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -953,9 +953,10 @@ _getucname(PyObject *self, Py_UCS4 code, char* buffer, int buflen,
if (self && UCD_Check(self)) {
/* in 3.2.0 there are no aliases and named sequences */
+ const change_record *old;
if (IS_ALIAS(code) || IS_NAMED_SEQ(code))
return 0;
- const change_record *old = get_old_record(self, code);
+ old = get_old_record(self, code);
if (old->category_changed == 0) {
/* unassigned */
return 0;