Fix issue with bitwise and precedence.

llvm-svn: 150897
This commit is contained in:
Ahmed Charles 2012-02-18 22:56:41 +00:00
parent 1c95ef4e94
commit 4f9484722c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ namespace llvm {
// Add a possibly unaligned sequence of bytes.
void GeneralHash::addUnaligned(const uint8_t *I, const uint8_t *E) {
ptrdiff_t Length = E - I;
if (uintptr_t(I) & 3 == 0) {
if ((uintptr_t(I) & 3) == 0) {
while (Length > 3) {
mix(*reinterpret_cast<const uint32_t *>(I));
I += 4;