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

Unified Diff: third_party/woff2/src/glyph.cc

Issue 1913773002: Update woff2 to 2bc6acf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/woff2/src/font.cc ('k') | third_party/woff2/src/transform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/woff2/src/glyph.cc
diff --git a/third_party/woff2/src/glyph.cc b/third_party/woff2/src/glyph.cc
index 17bef382cd46e078936658e8871b6962b9333f61..1dadafcb700151430bf5221f420d056572295dd7 100644
--- a/third_party/woff2/src/glyph.cc
+++ b/third_party/woff2/src/glyph.cc
@@ -122,7 +122,7 @@ bool ReadGlyph(const uint8_t* data, size_t len, Glyph* glyph) {
uint8_t flag_repeat = 0;
for (int i = 0; i < num_contours; ++i) {
flags[i].resize(glyph->contours[i].size());
- for (int j = 0; j < glyph->contours[i].size(); ++j) {
+ for (size_t j = 0; j < glyph->contours[i].size(); ++j) {
if (flag_repeat == 0) {
if (!buffer.ReadU8(&flag)) {
return FONT_COMPRESSION_FAILURE();
@@ -143,7 +143,7 @@ bool ReadGlyph(const uint8_t* data, size_t len, Glyph* glyph) {
// Read the x coordinates.
int prev_x = 0;
for (int i = 0; i < num_contours; ++i) {
- for (int j = 0; j < glyph->contours[i].size(); ++j) {
+ for (size_t j = 0; j < glyph->contours[i].size(); ++j) {
uint8_t flag = flags[i][j];
if (flag & kFLAG_XSHORT) {
// single byte x-delta coord value
@@ -170,7 +170,7 @@ bool ReadGlyph(const uint8_t* data, size_t len, Glyph* glyph) {
// Read the y coordinates.
int prev_y = 0;
for (int i = 0; i < num_contours; ++i) {
- for (int j = 0; j < glyph->contours[i].size(); ++j) {
+ for (size_t j = 0; j < glyph->contours[i].size(); ++j) {
uint8_t flag = flags[i][j];
if (flag & kFLAG_YSHORT) {
// single byte y-delta coord value
« no previous file with comments | « third_party/woff2/src/font.cc ('k') | third_party/woff2/src/transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698