From c15ea4c81280d64e1a74f7e48bbff1f6dfb91860 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sun, 17 May 2015 23:46:22 -0500 Subject: [PATCH] Issue #23488: Fix a syntax error on big endian platforms. Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run. --- Modules/_randommodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 91fcc87c9d7..df149c5e8a0 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;