Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: src/gpu/GrTHashTable.h

Issue 242643008: fix warnings around size_t/int (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698