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

Unified Diff: include/utils/SkRTConf.h

Issue 23213004: Fix size_t to int conversion warning on Win64 in SkRTConf.h. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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: include/utils/SkRTConf.h
===================================================================
--- include/utils/SkRTConf.h (revision 10718)
+++ include/utils/SkRTConf.h (working copy)
@@ -115,10 +115,8 @@
sprintf(outline, "%-30.30s", getName());
doPrint(&(outline[30]));
sprintf(&(outline[60]), " %.128s", fDescription.c_str());
- if (' ' == outline[strlen(outline)-1]) {
- for (int i = strlen(outline)-1 ; ' ' == outline[i] ; i--) {
- outline[i] = '\0';
- }
+ for (size_t i = strlen(outline); i --> 0 && ' ' == outline[i];) {
+ outline[i] = '\0';
}
o->writeText(outline);
}
« 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