diff Modules/_json.c @ 65195:cf2c583b2cbe

Issue #10055: Make json C89-compliant in UCS4 mode.
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 09 Oct 2010 15:24:28 +0000
parents c3ad883b940b
children 6631e5f6d2ce
line wrap: on
line diff
--- a/Modules/_json.c	Sat Oct 09 11:24:34 2010 +0000
+++ b/Modules/_json.c	Sat Oct 09 15:24:28 2010 +0000
@@ -440,8 +440,8 @@
                 end += 6;
                 /* Decode 4 hex digits */
                 for (; next < end; next++) {
+                    Py_UNICODE digit = buf[next];
                     c2 <<= 4;
-                    Py_UNICODE digit = buf[next];
                     switch (digit) {
                         case '0': case '1': case '2': case '3': case '4':
                         case '5': case '6': case '7': case '8': case '9':