aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-16 21:36:27 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-16 21:36:27 +0000
commitb03db4a366d7bdcea095983f4beaf9982e96fc21 (patch)
treeb8228a402b8ee2ece4407966875074e094760455
parent6f3795105b2b458079e53a721c1735c9518f6bb5 (diff)
fix signed/unsigned warning (use size_t in conjunction with SK_ARRAY_COUNT)
git-svn-id: http://skia.googlecode.com/svn/trunk@2702 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--tests/WritePixelsTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/WritePixelsTest.cpp b/tests/WritePixelsTest.cpp
index 00e08f0b16..0515c59383 100644
--- a/tests/WritePixelsTest.cpp
+++ b/tests/WritePixelsTest.cpp
@@ -398,10 +398,10 @@ void WritePixelsTest(skiatest::Reporter* reporter, GrContext* context) {
SkCanvas::kRGBA_Premul_Config8888,
SkCanvas::kRGBA_Unpremul_Config8888,
};
- for (int r = 0; r < SK_ARRAY_COUNT(testRects); ++r) {
+ for (size_t r = 0; r < SK_ARRAY_COUNT(testRects); ++r) {
const SkIRect& rect = testRects[r];
for (int tightBmp = 0; tightBmp < 2; ++tightBmp) {
- for (int c = 0; c < SK_ARRAY_COUNT(gReadConfigs); ++c) {
+ for (size_t c = 0; c < SK_ARRAY_COUNT(gReadConfigs); ++c) {
fillCanvas(&canvas);
SkCanvas::Config8888 config8888 = gReadConfigs[c];
SkBitmap bmp;