From 4f9484722ced89d5d7b629f9d42f993207bf44b0 Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Sat, 18 Feb 2012 22:56:41 +0000 Subject: [PATCH] Fix issue with bitwise and precedence. llvm-svn: 150897 --- llvm/lib/Support/Hashing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Hashing.cpp b/llvm/lib/Support/Hashing.cpp index 89b84530afad..21fcdd7e7f88 100644 --- a/llvm/lib/Support/Hashing.cpp +++ b/llvm/lib/Support/Hashing.cpp @@ -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(I)); I += 4;