[Python-checkins] cpython: Issue #23488: Fix a syntax error on big endian platforms.

zach.ware python-checkins at python.org
Mon May 18 06:57:24 CEST 2015


https://hg.python.org/cpython/rev/16d0e3dda31c
changeset:   96130:16d0e3dda31c
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Sun May 17 23:46:22 2015 -0500
summary:
  Issue #23488: Fix a syntax error on big endian platforms.

Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run.

files:
  Modules/_randommodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
--- a/Modules/_randommodule.c
+++ b/Modules/_randommodule.c
@@ -266,7 +266,7 @@
     {
         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;

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list