Fix signed/unsigned comparison warnings in benchmain.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@7833 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index e45f76e..5fc74bc 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -623,7 +623,7 @@
}
SkTArray<BenchTimer*> 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 @@
// 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]);
}