From 5c90e291425b2788f47679266d9584845ceefc2e Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 22 Feb 2013 19:17:13 +0000 Subject: [PATCH] Fix signed/unsigned comparison warnings in benchmain.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@7833 2bbb7eff-a529-9590-31e7-b0007b416f81 --- bench/benchmain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp index e45f76ea1..5fc74bcec 100644 --- a/bench/benchmain.cpp +++ b/bench/benchmain.cpp @@ -623,7 +623,7 @@ int tool_main(int argc, char** argv) { } SkTArray timers(SK_ARRAY_COUNT(gConfigs)); - for (int i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) { + for (size_t i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) { #if SK_SUPPORT_GPU SkGLContext* ctx = NULL; if (kGPU_Backend == gConfigs[i].fBackend) { @@ -839,7 +839,7 @@ int tool_main(int argc, char** argv) { // Destroy the GrContext before the inst tracking printing at main() exit occurs. gContextFactory.destroyContexts(); #endif - for (int i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) { + for (size_t i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) { SkDELETE(timers[i]); }