diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-05-17 23:46:22 -0500 |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-05-17 23:46:22 -0500 |
commit | c15ea4c81280d64e1a74f7e48bbff1f6dfb91860 (patch) | |
tree | 43892a750730026a908546d179dae6337dfbb44d | |
parent | 4baebfe86782fec741fc1b992e7bc5e40d3f6444 (diff) | |
download | cpython-git-c15ea4c81280d64e1a74f7e48bbff1f6dfb91860.tar.gz |
Issue #23488: Fix a syntax error on big endian platforms.
Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run.
-rw-r--r-- | Modules/_randommodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 91fcc87c9d..df149c5e8a 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; |