Index: src/gpu/GrTHashTable.h |
diff --git a/src/gpu/GrTHashTable.h b/src/gpu/GrTHashTable.h |
index 83462c70c9e172889f03d6fb469078e2af2083db..9307425b9118ecac881009b1e59de43dd159a02b 100644 |
--- a/src/gpu/GrTHashTable.h |
+++ b/src/gpu/GrTHashTable.h |
@@ -61,7 +61,10 @@ private: |
kHashCount = 1 << kHashBits, |
kHashMask = kHashCount - 1 |
}; |
- static unsigned hash2Index(uint32_t hash) { |
+ static unsigned hash2Index(intptr_t hash) { |
+ if (sizeof(hash) == 8) { |
+ hash ^= hash >> 32; |
+ } |
hash ^= hash >> 16; |
if (kHashBits <= 8) { |
hash ^= hash >> 8; |