aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPathRef.h
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-27 12:27:27 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-27 12:27:27 +0000
commit080958599e57251ff9a05f66559bd8888dcfe6a8 (patch)
tree2723fb7b849d6e918f104aa5eccb6a0ee9d8c3a8 /include/core/SkPathRef.h
parent65caeaf32d09f5886f3c740cfef2f1c26ef9cb50 (diff)
Compiler warning/error fix for Chromium
git-svn-id: http://skia.googlecode.com/svn/trunk@11494 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPathRef.h')
-rw-r--r--include/core/SkPathRef.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/core/SkPathRef.h b/include/core/SkPathRef.h
index 5e0e7bbfde..f397d678d9 100644
--- a/include/core/SkPathRef.h
+++ b/include/core/SkPathRef.h
@@ -347,11 +347,11 @@ public:
* Gets the number of bytes that would be written in writeBuffer()
*/
uint32_t writeSize() {
- return 5 * sizeof(uint32_t) +
- fVerbCnt * sizeof(uint8_t) +
- fPointCnt * sizeof(SkPoint) +
- fConicWeights.bytes() +
- sizeof(SkRect);
+ return uint32_t(5 * sizeof(uint32_t) +
+ fVerbCnt * sizeof(uint8_t) +
+ fPointCnt * sizeof(SkPoint) +
+ fConicWeights.bytes() +
+ sizeof(SkRect));
}
private: