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

Unified Diff: third_party/ots/test/side-by-side.cc

Issue 1062093002: Update OTS to revision 6d2e08b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « third_party/ots/test/ot-sanitise.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ots/test/side-by-side.cc
diff --git a/third_party/ots/test/side-by-side.cc b/third_party/ots/test/side-by-side.cc
index 9034a7c565ca058152a1451aa22e86f70f622e65..8565bfe2602c0ef486178b6a9895bb8764441ecd 100644
--- a/third_party/ots/test/side-by-side.cc
+++ b/third_party/ots/test/side-by-side.cc
@@ -20,7 +20,7 @@
namespace {
void DumpBitmap(const FT_Bitmap *bitmap) {
- for (int i = 0; i < bitmap->rows * bitmap->width; ++i) {
+ for (unsigned int i = 0; i < bitmap->rows * bitmap->width; ++i) {
if (bitmap->buffer[i] > 192) {
std::fprintf(stderr, "#");
} else if (bitmap->buffer[i] > 128) {
@@ -44,7 +44,7 @@ int CompareBitmaps(const FT_Bitmap *orig, const FT_Bitmap *trans) {
if (orig->width == trans->width &&
orig->rows == trans->rows) {
- for (int i = 0; i < orig->rows * orig->width; ++i) {
+ for (unsigned int i = 0; i < orig->rows * orig->width; ++i) {
if (orig->buffer[i] != trans->buffer[i]) {
std::fprintf(stderr, "bitmap data doesn't match!\n");
ret = 1;
« no previous file with comments | « third_party/ots/test/ot-sanitise.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698