Index: src/effects/SkColorCubeFilter.cpp |
diff --git a/src/effects/SkColorCubeFilter.cpp b/src/effects/SkColorCubeFilter.cpp |
index 07b229ceae735ef68251efda397d8b3e2421ff31..7f1f59622e57e2184ef9e247bc9960da06708c62 100644 |
--- a/src/effects/SkColorCubeFilter.cpp |
+++ b/src/effects/SkColorCubeFilter.cpp |
@@ -99,7 +99,7 @@ void SkColorCubeFilter::ColorCubeProcesingCache::initProcessingLuts( |
// We need 256 SkScalar * 2 for fColorToFactors and 256 SkScalar |
// for fColorToScalar, so a total of 768 SkScalar. |
cache->fLutStorage.reset(512 * sizeof(int) + 768 * sizeof(SkScalar)); |
- uint8_t* storage = (uint8_t*)cache->fLutStorage.get(); |
+ uint8_t* storage = cache->fLutStorage.get(); |
cache->fColorToIndex[0] = (int*)storage; |
cache->fColorToIndex[1] = cache->fColorToIndex[0] + 256; |
cache->fColorToFactors[0] = (SkScalar*)(storage + (512 * sizeof(int))); |