[Python-checkins] cpython: Issue #16113: one more C90 violation in big endian code.
christian.heimes
python-checkins at python.org
Wed Sep 7 07:18:49 EDT 2016
https://hg.python.org/cpython/rev/ddc95a9bc2e0
changeset: 103221:ddc95a9bc2e0
user: Christian Heimes <christian at python.org>
date: Wed Sep 07 13:18:40 2016 +0200
summary:
Issue #16113: one more C90 violation in big endian code.
files:
Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c b/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c
--- a/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c
+++ b/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c
@@ -333,8 +333,8 @@
for(lanePosition=0; lanePosition<laneCount; lanePosition++) {
UINT32 *stateAsHalfLanes = (UINT32*)state;
UINT32 low, high, temp, temp0, temp1;
+ UINT8 laneAsBytes[8];
fromBitInterleaving(stateAsHalfLanes[lanePosition*2], stateAsHalfLanes[lanePosition*2+1], low, high, temp, temp0, temp1);
- UINT8 laneAsBytes[8];
laneAsBytes[0] = low & 0xFF;
laneAsBytes[1] = (low >> 8) & 0xFF;
laneAsBytes[2] = (low >> 16) & 0xFF;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list