]> granicus.if.org Git - python/commitdiff
#12753: fix compilation on Windows.
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 21 Oct 2011 21:24:17 +0000 (00:24 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 21 Oct 2011 21:24:17 +0000 (00:24 +0300)
Modules/unicodedata.c

index 82a711fd34a15fbaf3660d1c9ed278e1046679cc..5032d42b6a906cfb4b965de8ab7962d96d01e708 100644 (file)
@@ -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;