am 72fe9422: Fix native crash in Latin-1 typefaces

* commit '72fe9422c869b7878240a23e4650d9d90edb1c2a':
  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 9d44749a5d

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;