Index: src/core/SkScan_AntiPath.cpp |
diff --git a/src/core/SkScan_AntiPath.cpp b/src/core/SkScan_AntiPath.cpp |
index 6ea6b8b07ea37e78ef79e752a1e34d4ddbf8a1f6..1c222b9c80e93b836ecfc2c65b4e506e3d30b8a0 100644 |
--- a/src/core/SkScan_AntiPath.cpp |
+++ b/src/core/SkScan_AntiPath.cpp |
@@ -545,7 +545,7 @@ void MaskSuperBlitter::blitH(int x, int y, int width) { |
} |
#endif |
- x -= (fMask.fBounds.fLeft << SHIFT); |
+ x -= SkLeftShift(fMask.fBounds.fLeft, SHIFT); |
// hack, until I figure out why my cubics (I think) go beyond the bounds |
if (x < 0) { |
@@ -592,7 +592,7 @@ static bool fitsInsideLimit(const SkRect& r, SkScalar max) { |
static int overflows_short_shift(int value, int shift) { |
const int s = 16 + shift; |
- return (value << s >> s) - value; |
+ return (SkLeftShift(value, s) >> s) - value; |
} |
/** |