Index: tests/ImageCacheTest.cpp |
diff --git a/tests/ImageCacheTest.cpp b/tests/ImageCacheTest.cpp |
index 9f893bb24c48c6b06024497961475bd8d8e31059..eaf3f2811fdf7ee56cc9e9ade2f243826c6c6761 100644 |
--- a/tests/ImageCacheTest.cpp |
+++ b/tests/ImageCacheTest.cpp |
@@ -12,11 +12,10 @@ |
namespace { |
static void* gGlobalAddress; |
struct TestingKey : public SkResourceCache::Key { |
- void* fPtr; |
intptr_t fValue; |
- TestingKey(intptr_t value) : fPtr(&gGlobalAddress), fValue(value) { |
- this->init(sizeof(fPtr) + sizeof(fValue)); |
+ TestingKey(intptr_t value) : fValue(value) { |
+ this->init(&gGlobalAddress, sizeof(fValue)); |
} |
}; |
struct TestingRec : public SkResourceCache::Rec { |