| Index: src/ports/SkFontHost_FreeType.cpp
|
| diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
|
| index f3a87e52aae82fc3efb1a1122b6662f5b2cd5805..ba0ce14560a53666a5c1b491c24a9253d15f7533 100644
|
| --- a/src/ports/SkFontHost_FreeType.cpp
|
| +++ b/src/ports/SkFontHost_FreeType.cpp
|
| @@ -1747,7 +1747,7 @@ size_t SkTypeface_FreeType::onGetTableData(SkFontTableTag tag, size_t offset,
|
| { "ultralight", SkFontStyle::kExtraLight_Weight },
|
| };
|
| int const index = SkStrLCSearch(&commonWeights[0].name, SK_ARRAY_COUNT(commonWeights),
|
| - psFontInfo.weight, sizeof(commonWeights));
|
| + psFontInfo.weight, sizeof(commonWeights[0]));
|
| if (index >= 0) {
|
| weight = commonWeights[index].weight;
|
| } else {
|
|
|