In some build environments this results in off-by-one

This commit is contained in:
Rod Sheeter
2015-02-24 16:04:13 -08:00
parent bb12c44af7
commit 4e48243b3a
+1 -1
View File
@@ -306,7 +306,7 @@ bool ConvertTTFToWOFF2(const uint8_t *data, size_t length,
const Font::Table& src_table = font.tables.at(tag); const Font::Table& src_table = font.tables.at(tag);
if (index_by_offset.find(src_table.offset) == index_by_offset.end()) { if (index_by_offset.find(src_table.offset) == index_by_offset.end()) {
index_by_offset[src_table.offset] = index_by_offset.size(); index_by_offset[src_table.offset] = tables.size();
} else if (!src_table.IsReused()) { } else if (!src_table.IsReused()) {
return false; return false;
} }