mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 01:25:49 +00:00
Fix issue with bitwise and precedence.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150897 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,7 +14,7 @@ namespace llvm {
|
|||||||
// Add a possibly unaligned sequence of bytes.
|
// Add a possibly unaligned sequence of bytes.
|
||||||
void GeneralHash::addUnaligned(const uint8_t *I, const uint8_t *E) {
|
void GeneralHash::addUnaligned(const uint8_t *I, const uint8_t *E) {
|
||||||
ptrdiff_t Length = E - I;
|
ptrdiff_t Length = E - I;
|
||||||
if (uintptr_t(I) & 3 == 0) {
|
if ((uintptr_t(I) & 3) == 0) {
|
||||||
while (Length > 3) {
|
while (Length > 3) {
|
||||||
mix(*reinterpret_cast<const uint32_t *>(I));
|
mix(*reinterpret_cast<const uint32_t *>(I));
|
||||||
I += 4;
|
I += 4;
|
||||||
|
Reference in New Issue
Block a user