]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #23488: Fix a syntax error on big endian platforms.
authorZachary Ware <zachary.ware@gmail.com>
Mon, 18 May 2015 04:46:22 +0000 (23:46 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Mon, 18 May 2015 04:46:22 +0000 (23:46 -0500)
Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run.

Modules/_randommodule.c

index 91fcc87c9d78e74d96f294f2c08829baf3d98c8c..df149c5e8a054c143293084f34182fc3170d64d0 100644 (file)
@@ -266,7 +266,7 @@ random_seed(RandomObject *self, PyObject *args)
     {
         size_t i, j;
         /* Reverse an array. */
-        for (i = 0; j = keyused - 1; i < j; i++, j--) {
+        for (i = 0, j = keyused - 1; i < j; i++, j--) {
             PY_UINT32_T tmp = key[i];
             key[i] = key[j];
             key[j] = tmp;