Index: third_party/woff2/src/font.cc |
diff --git a/third_party/woff2/src/font.cc b/third_party/woff2/src/font.cc |
index b2228e39da5285f434699334934b0d3e4d61e997..3679a4c0d3b831cdbad175985670204bcdb4ccae 100644 |
--- a/third_party/woff2/src/font.cc |
+++ b/third_party/woff2/src/font.cc |
@@ -141,7 +141,7 @@ bool ReadTrueTypeCollection(Buffer* file, const uint8_t* data, size_t len, |
} |
std::vector<uint32_t> offsets; |
- for (auto i = 0; i < num_fonts; i++) { |
+ for (size_t i = 0; i < num_fonts; i++) { |
uint32_t offset; |
if (!file->ReadU32(&offset)) { |
return FONT_COMPRESSION_FAILURE(); |
@@ -297,7 +297,7 @@ bool WriteFontCollection(const FontCollection& font_collection, uint8_t* dst, |
// Offset Table, zeroed for now |
size_t offset_table = offset; // where to write offsets later |
- for (int i = 0; i < font_collection.fonts.size(); i++) { |
+ for (size_t i = 0; i < font_collection.fonts.size(); i++) { |
StoreU32(0, &offset, dst); |
} |
@@ -308,7 +308,7 @@ bool WriteFontCollection(const FontCollection& font_collection, uint8_t* dst, |
} |
// Write fonts and their offsets. |
- for (int i = 0; i < font_collection.fonts.size(); i++) { |
+ for (size_t i = 0; i < font_collection.fonts.size(); i++) { |
const auto& font = font_collection.fonts[i]; |
StoreU32(offset, &offset_table, dst); |
if (!WriteFont(font, &offset, dst, dst_size)) { |