From: Ahmed Charles Date: Sat, 18 Feb 2012 22:56:41 +0000 (+0000) Subject: Fix issue with bitwise and precedence. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=507329912aa343b8a430a97cf2d8f92eecb6dc01;hp=1a4b19ef9b870d8c914bcd5ceb520a64a9a2cc52 Fix issue with bitwise and precedence. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150897 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Hashing.cpp b/lib/Support/Hashing.cpp index 89b84530afa..21fcdd7e7f8 100644 --- a/lib/Support/Hashing.cpp +++ b/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;