aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-13 19:20:32 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-13 19:20:32 +0000
commit44a435bc1ac84748d5bec420c7c5fe09171fd971 (patch)
treed164cb41241a49b7afdaf78dc718eb90c60d0db4 /src
parent0f10f7bf1fb43ca6346dc220a076773b1f19a367 (diff)
Attempt to fix -1->unsigned warning on mac 10.6
TBR=bungeman@google.com Review URL: https://codereview.chromium.org/199433002 git-svn-id: http://skia.googlecode.com/svn/trunk@13796 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/gpu/effects/GrRRectEffect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/effects/GrRRectEffect.cpp b/src/gpu/effects/GrRRectEffect.cpp
index 324d02da02..9d83785810 100644
--- a/src/gpu/effects/GrRRectEffect.cpp
+++ b/src/gpu/effects/GrRRectEffect.cpp
@@ -669,19 +669,19 @@ GrEffectRef* GrRRectEffect::Create(GrEffectEdgeType edgeType, const SkRRect& rre
continue;
}
if (r.fX != r.fY) {
- cornerFlags = -1;
+ cornerFlags = ~0U;
break;
}
if (!cornerFlags) {
radius = r.fX;
if (radius < CircularRRectEffect::kRadiusMin) {
- cornerFlags = -1;
+ cornerFlags = ~0U;
break;
}
cornerFlags = 1 << c;
} else {
if (r.fX != radius) {
- cornerFlags = -1;
+ cornerFlags = ~0U;
break;
}
cornerFlags |= 1 << c;