diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-05-18 04:46:22 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-05-18 04:46:22 (GMT) |
commit | c15ea4c81280d64e1a74f7e48bbff1f6dfb91860 (patch) | |
tree | 43892a750730026a908546d179dae6337dfbb44d /Modules/_randommodule.c | |
parent | 4baebfe86782fec741fc1b992e7bc5e40d3f6444 (diff) | |
download | cpython-c15ea4c81280d64e1a74f7e48bbff1f6dfb91860.zip cpython-c15ea4c81280d64e1a74f7e48bbff1f6dfb91860.tar.gz cpython-c15ea4c81280d64e1a74f7e48bbff1f6dfb91860.tar.bz2 |
Issue #23488: Fix a syntax error on big endian platforms.
Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run.
Diffstat (limited to 'Modules/_randommodule.c')
-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 91fcc87..df149c5 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; |