]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #14744: Fix compilation on Windows
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 29 May 2012 16:51:10 +0000 (18:51 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 29 May 2012 16:51:10 +0000 (18:51 +0200)
Objects/longobject.c

index 1369dacca71545e48d6113a972673216ac7f736a..80fe724d3455c3afe1bb72f5c437f7cb8bb6be29 100644 (file)
@@ -1687,8 +1687,8 @@ long_to_decimal_string_internal(PyObject *aa,
         WRITE_DIGITS(Py_UCS2);
     }
     else {
-        assert (kind == PyUnicode_4BYTE_KIND);
         Py_UCS4 *p;
+        assert (kind == PyUnicode_4BYTE_KIND);
         WRITE_DIGITS(Py_UCS4);
     }
 #undef WRITE_DIGITS
@@ -1845,8 +1845,8 @@ long_format_binary(PyObject *aa, int base, int alternate,
         WRITE_DIGITS(Py_UCS2);
     }
     else {
-        assert (kind == PyUnicode_4BYTE_KIND);
         Py_UCS4 *p;
+        assert (kind == PyUnicode_4BYTE_KIND);
         WRITE_DIGITS(Py_UCS4);
     }
 #undef WRITE_DIGITS