Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 3875c062074c15fdfd84dcccdcb1bd975b5e9cb4..6eb42d2f5a0e705929eeb468cf9891275f30b6a0 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -1514,7 +1514,7 @@ private: |
static inline SkCanvas::SaveFlags operator|(const SkCanvas::SaveFlags lhs, |
const SkCanvas::SaveFlags rhs) { |
- return static_cast<SkCanvas::SaveFlags>(lhs | rhs); |
+ return static_cast<SkCanvas::SaveFlags>(static_cast<int>(lhs) | static_cast<int>(rhs)); |
} |
static inline SkCanvas::SaveFlags& operator|=(SkCanvas::SaveFlags& lhs, |