fix signed mismatch
R=egdaniel@google.com
TBR=egdaniel
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Author: caryclark@google.com
Review URL: https://codereview.chromium.org/433903002
diff --git a/tools/sk_tool_utils_font.cpp b/tools/sk_tool_utils_font.cpp
index aced717..3236f07 100644
--- a/tools/sk_tool_utils_font.cpp
+++ b/tools/sk_tool_utils_font.cpp
@@ -22,7 +22,7 @@
// makes this unsafe to delete when the main process atexit()s.
// SkLazyPtr does the same sort of thing.
#if SK_DEVELOPER
- for (unsigned index = 0; index < gTestFontsCount; ++index) {
+ for (int index = 0; index < gTestFontsCount; ++index) {
SkTestFontData& fontData = gTestFonts[index];
SkSafeUnref(fontData.fFontCache);
}
@@ -35,7 +35,7 @@
SkTestFontData* fontData = NULL;
const SubFont* sub;
if (name) {
- for (unsigned index = 0; index < gSubFontsCount; ++index) {
+ for (int index = 0; index < gSubFontsCount; ++index) {
sub = &gSubFonts[index];
if (!strcmp(name, sub->fName) && sub->fStyle == style) {
fontData = &sub->fFont;
@@ -70,7 +70,7 @@
SkTypeface* resource_font(const char* name, SkTypeface::Style style) {
const char* file = NULL;
if (name) {
- for (unsigned index = 0; index < gSubFontsCount; ++index) {
+ for (int index = 0; index < gSubFontsCount; ++index) {
const SubFont& sub = gSubFonts[index];
if (!strcmp(name, sub.fName) && sub.fStyle == style) {
file = sub.fFile;