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

Unified Diff: src/core/SkMask.cpp

Issue 147053003: fix (some) 64bit warnings -- size_t -> int (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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/SkMallocPixelRef.cpp ('k') | src/core/SkMetaData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/core/SkMallocPixelRef.cpp ('k') | src/core/SkMetaData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698