Index: src/core/SkMask.cpp |
diff --git a/src/core/SkMask.cpp b/src/core/SkMask.cpp |
index f3ae88a906a9c2c929d69557e66cd4110f40bcac..929835717ba95fe2c6c6cf4c7382e02d02911158 100644 |
--- a/src/core/SkMask.cpp |
+++ b/src/core/SkMask.cpp |
@@ -25,7 +25,7 @@ size_t SkMask::computeImageSize() const { |
size_t SkMask::computeTotalImageSize() const { |
size_t size = this->computeImageSize(); |
if (fFormat == SkMask::k3D_Format) { |
- size = safeMul32(size, 3); |
+ size = safeMul32(SkToS32(size), 3); |
} |
return size; |
} |