Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: tools/sk_tool_utils_font.cpp

Issue 433903002: fix signed mismatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/sk_tool_utils_font.cpp
diff --git a/tools/sk_tool_utils_font.cpp b/tools/sk_tool_utils_font.cpp
index aced71747e3e1212a6a5446ed5a67d2353c220dd..3236f07c84e1912dc98e71c177e3b76b0b9cf6e4 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698