From: Zachary Ware Date: Mon, 18 May 2015 04:46:22 +0000 (-0500) Subject: Issue #23488: Fix a syntax error on big endian platforms. X-Git-Tag: v3.5.0b1~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c15ea4c81280d64e1a74f7e48bbff1f6dfb91860;p=thirdparty%2FPython%2Fcpython.git Issue #23488: Fix a syntax error on big endian platforms. Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run. --- diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 91fcc87c9d78..df149c5e8a05 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -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;