Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: src/gpu/effects/GrRRectEffect.cpp

Issue 199433002: Attempt to fix -1->unsigned warning on mac 10.6 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: try again Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrRRectEffect.cpp
diff --git a/src/gpu/effects/GrRRectEffect.cpp b/src/gpu/effects/GrRRectEffect.cpp
index 324d02da02df5c140aec42a9a98c5e0607535cc5..9d83785810fab7d0b365598fad32fde3e7996485 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698