Index: src/core/SkScan_AntiPath.cpp |
diff --git a/src/core/SkScan_AntiPath.cpp b/src/core/SkScan_AntiPath.cpp |
index 6ea6b8b07ea37e78ef79e752a1e34d4ddbf8a1f6..dad7ad62dfdf97b6e8330fd84afae3680fd1b337 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 -= fMask.fBounds.fLeft * (1 << 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 (value * (1 << s) >> s) - value; |
} |
/** |