# HG changeset patch
# User Christoph Gohlke <cgohlke@uci.edu>
# Date 1357104883 28800
#      Tue Jan 01 21:34:43 2013 -0800
# Node ID d1e16edc7613a6d71218a72dae421cb488dbe20e
# Parent  ddc252a6b1ecc852cc543916d0c32cbce23937e0
Fix msvc10 compile error under Python 3.3

diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -1208,8 +1208,8 @@
                 end += 6;
                 /* Decode 4 hex digits */
                 for (; next < end; next++) {
+                    JSON_UNICHR digit = PyUnicode_READ(kind, buf, next);
                     c2 <<= 4;
-                    JSON_UNICHR digit = PyUnicode_READ(kind, buf, next);
                     switch (digit) {
                         case '0': case '1': case '2': case '3': case '4':
                         case '5': case '6': case '7': case '8': case '9':