Fix issue with bitwise and precedence.
[oota-llvm.git] / lib / Support / Hashing.cpp
index 89b84530afad150c4d2dcaae7caa0f5bb7258913..21fcdd7e7f88fb877b1a888a3c3f5f2352597160 100644 (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;