Index: src/woff2.cc |
=================================================================== |
--- src/woff2.cc (revision 100) |
+++ src/woff2.cc (working copy) |
@@ -656,7 +656,7 @@ |
if (glyph_size + 3 < glyph_size) { |
return OTS_FAILURE(); |
} |
- glyph_size = ots::Round4(glyph_size); |
+ glyph_size = ots::Round2(glyph_size); |
if (glyph_size > dst_size - loca_offset) { |
// This shouldn't happen, but this test defensively maintains the |
// invariant that loca_offset <= dst_size. |