aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_tool_utils_font.cpp
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2014-07-31 06:36:45 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-31 06:36:45 -0700
commitc2a484644a49127adb55c435bd51c006f102d1a5 (patch)
tree2a7ffdbf07d89b7fc4cca1bbc37b2c41755ed0ba /tools/sk_tool_utils_font.cpp
parent992c7b03ef7914a18bfd78e965b0b4c99a5f5672 (diff)
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
Diffstat (limited to 'tools/sk_tool_utils_font.cpp')
-rw-r--r--tools/sk_tool_utils_font.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/sk_tool_utils_font.cpp b/tools/sk_tool_utils_font.cpp
index aced71747e..3236f07c84 100644
--- a/tools/sk_tool_utils_font.cpp
+++ b/tools/sk_tool_utils_font.cpp
@@ -22,7 +22,7 @@ static void release_portable_typefaces() {
// 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 @@ SkTypeface* create_font(const char* name, SkTypeface::Style style) {
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* create_font(const char* name, SkTypeface::Style style) {
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;