Index: src/opts/SkXfermode_opts.h |
diff --git a/src/opts/SkXfermode_opts.h b/src/opts/SkXfermode_opts.h |
index 7b72bc3f80145706ad15356cd6446c47ab53b2da..f15094c98bfa5fff4cfc12c0109324252cbc8b36 100644 |
--- a/src/opts/SkXfermode_opts.h |
+++ b/src/opts/SkXfermode_opts.h |
@@ -285,12 +285,12 @@ private: |
} |
static Sk4f Load(SkPMColor c) { |
- return SkNx_cast<float>(Sk4b::Load((uint8_t*)&c)) * Sk4f(1.0f/255); |
+ return SkNx_cast<float>(Sk4b::Load(&c)) * Sk4f(1.0f/255); |
} |
static SkPMColor Round(const Sk4f& f) { |
SkPMColor c; |
- SkNx_cast<uint8_t>(f * Sk4f(255) + Sk4f(0.5f)).store((uint8_t*)&c); |
+ SkNx_cast<uint8_t>(f * Sk4f(255) + Sk4f(0.5f)).store(&c); |
return c; |
} |