diff Modules/_json.c @ 65196:810b540ae650 3.1

Merged revisions 85342 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85342 | antoine.pitrou | 2010-10-09 17:24:28 +0200 (sam., 09 oct. 2010) | 4 lines Issue #10055: Make json C89-compliant in UCS4 mode. ........
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 09 Oct 2010 15:26:41 +0000
parents b9a75dd7420d
children 61164d09337e 3c9232a684ae
line wrap: on
line diff
--- a/Modules/_json.c	Sat Oct 09 10:28:02 2010 +0000
+++ b/Modules/_json.c	Sat Oct 09 15:26:41 2010 +0000
@@ -430,8 +430,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':