]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #16113: one more C90 violation in big endian code.
authorChristian Heimes <christian@python.org>
Wed, 7 Sep 2016 11:18:40 +0000 (13:18 +0200)
committerChristian Heimes <christian@python.org>
Wed, 7 Sep 2016 11:18:40 +0000 (13:18 +0200)
Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c

index 8382ae53b488ea5324444551e13a336f434a228f..a2f9ffea93259d964b95f41ec45ec535ad519d49 100644 (file)
@@ -333,8 +333,8 @@ void KeccakP1600_ExtractLanes(const void *state, unsigned char *data, unsigned i
     for(lanePosition=0; lanePosition<laneCount; lanePosition++) {
         UINT32 *stateAsHalfLanes = (UINT32*)state;
         UINT32 low, high, temp, temp0, temp1;
-        fromBitInterleaving(stateAsHalfLanes[lanePosition*2], stateAsHalfLanes[lanePosition*2+1], low, high, temp, temp0, temp1);
         UINT8 laneAsBytes[8];
+        fromBitInterleaving(stateAsHalfLanes[lanePosition*2], stateAsHalfLanes[lanePosition*2+1], low, high, temp, temp0, temp1);
         laneAsBytes[0] = low & 0xFF;
         laneAsBytes[1] = (low >> 8) & 0xFF;
         laneAsBytes[2] = (low >> 16) & 0xFF;