aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2016-05-06 11:03:18 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-06 11:03:18 -0700
commit4d0cd764771a6c52ae80157d2915baa4844944c8 (patch)
tree158586e94a5a7f08def13d4ebc31ae83b7080ca7 /src/core
parent3ccf2e75ed92adb3c2c289e0cb95901d162df394 (diff)
Fix for Sk4f Ubuntu compile warning
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkPixmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPixmap.cpp b/src/core/SkPixmap.cpp
index a5e474b6d4..bd551ed9d3 100644
--- a/src/core/SkPixmap.cpp
+++ b/src/core/SkPixmap.cpp
@@ -226,7 +226,7 @@ bool SkPixmap::erase(const SkColor4f& origColor, const SkIRect* subset) const {
if (kRGBA_F16_SkColorType != pm.colorType()) {
Sk4f c4 = Sk4f::Load(color.vec());
SkColor c;
- (c4 * Sk4f(255) + Sk4f(0.5f)).store(&c);
+ SkNx_cast<uint8_t>(c4 * Sk4f(255) + Sk4f(0.5f)).store(&c);
return pm.erase(c);
}