diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-14 17:46:49 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-14 17:46:49 (GMT) |
commit | 36949134f109c72b8aba174ebf4d618f91a9f7ce (patch) | |
tree | 82242eeb9a5c4b822575cd358d2ae81e15bed53e /config.tests | |
parent | 74bec871abb48baadf239fd12e77bb85924436a1 (diff) | |
parent | 463cd4f6563dc12d8b45bf2e293dc64d583e132c (diff) | |
download | Qt-36949134f109c72b8aba174ebf4d618f91a9f7ce.zip Qt-36949134f109c72b8aba174ebf4d618f91a9f7ce.tar.gz Qt-36949134f109c72b8aba174ebf4d618f91a9f7ce.tar.bz2 |
Merge commit 'origin/4.6' into 4.6
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/mac/crc/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config.tests/mac/crc/main.cpp b/config.tests/mac/crc/main.cpp index 894f88b..700a4cd 100644 --- a/config.tests/mac/crc/main.cpp +++ b/config.tests/mac/crc/main.cpp @@ -71,7 +71,7 @@ private: for(int iCodes = 0; iCodes <= 0xFF; iCodes++) { ulTable[iCodes] = Reflect(iCodes, 8) << 24; for(int iPos = 0; iPos < 8; iPos++) { - ulTable[iCodes] = (ulTable[iCodes] << 1) + ulTable[iCodes] = ((ulTable[iCodes] << 1) & 0xffffffff) ^ ((ulTable[iCodes] & (1 << 31)) ? ulPolynomial : 0); } @@ -84,7 +84,7 @@ private: // Swap bit 0 for bit 7, bit 1 For bit 6, etc.... for(int iPos = 1; iPos < (cChar + 1); iPos++) { if(ulReflect & 1) { - ulValue |= (1 << (cChar - iPos)); + ulValue |= (1ul << (cChar - iPos)); } ulReflect >>= 1; } |