From: Zachary Ware Date: Sun, 17 Nov 2013 22:08:23 +0000 (-0600) Subject: Issue #19520: Fix (the last!) compiler warning on 32bit Windows, in _sha3 X-Git-Tag: v3.4.0b1~203 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f4bf9fb10945d227d131f1536ec7cd762ae029c;p=thirdparty%2FPython%2Fcpython.git Issue #19520: Fix (the last!) compiler warning on 32bit Windows, in _sha3 --- diff --git a/Misc/NEWS b/Misc/NEWS index e70db5a9d3ce..941eb29fd9c4 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -285,6 +285,8 @@ Tests Build ----- +- Issue #19520: Fix compiler warning in the _sha3 module on 32bit Windows. + - Issue #19356: Avoid using a C variabled named "_self", it's a reserved word in some C compilers. diff --git a/Modules/_sha3/keccak/KeccakF-1600-opt32.c b/Modules/_sha3/keccak/KeccakF-1600-opt32.c index dba6d59f1341..c52bfb7fd7c0 100644 --- a/Modules/_sha3/keccak/KeccakF-1600-opt32.c +++ b/Modules/_sha3/keccak/KeccakF-1600-opt32.c @@ -212,7 +212,7 @@ static void setInterleavedWordsInto8bytes(UINT8* dest, UINT32* evenAndOdd) #define extractLanes(laneCount, state, data) \ { \ - int i; \ + unsigned int i; \ for(i=0; i<(laneCount); i++) \ setInterleavedWordsInto8bytes(data+i*8, (UINT32*)state+i*2); \ }