am b1f16e88: Fix native crash in Latin-1 typefaces

* commit 'b1f16e880b39439054918774f8e53da2d4d0a133':
  Fix native crash in Latin-1 typefaces
This commit is contained in:
Raph Levien 2014-05-24 14:52:56 +00:00 committed by Android Git Automerger
commit b69befa658

View File

@ -75,7 +75,7 @@ FontCollection::FontCollection(const vector<FontFamily*>& typefaces) :
mMaxChar = max(mMaxChar, instance->mCoverage->length());
lastChar.push_back(instance->mCoverage->nextSetBit(0));
}
size_t nPages = mMaxChar >> kLogCharsPerPage;
size_t nPages = (mMaxChar + kPageMask) >> kLogCharsPerPage;
size_t offset = 0;
for (size_t i = 0; i < nPages; i++) {
Range dummy;