diff options
author | mtklein <mtklein@chromium.org> | 2015-12-09 13:32:58 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-09 13:32:58 -0800 |
commit | cefb4597624ef098e5d89a9a961d5b5159fd4214 (patch) | |
tree | 803713d904db3908eda7835bbbd30ddb3d0cb42f | |
parent | 8bf5d1754f08a3070c953f31cf20cde27a390cd0 (diff) |
Another undefined shift caught by -fsanitize=shift.
left was -16
I didn't see any warning about fTop, but seems simplest to fix that too.
BUG=skia:
Review URL: https://codereview.chromium.org/1505993007
-rw-r--r-- | src/core/SkScan_AntiPath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkScan_AntiPath.cpp b/src/core/SkScan_AntiPath.cpp index 1c222b9c80..22bca7a55c 100644 --- a/src/core/SkScan_AntiPath.cpp +++ b/src/core/SkScan_AntiPath.cpp @@ -91,11 +91,11 @@ BaseSuperBlitter::BaseSuperBlitter(SkBlitter* realBlit, const SkIRect& ir, const const int right = sectBounds.right(); fLeft = left; - fSuperLeft = left << SHIFT; + fSuperLeft = SkLeftShift(left, SHIFT); fWidth = right - left; fTop = sectBounds.top(); fCurrIY = fTop - 1; - fCurrY = (fTop << SHIFT) - 1; + fCurrY = SkLeftShift(fTop, SHIFT) - 1; SkDEBUGCODE(fCurrX = -1;) } |