Bug 1163583 - Update SetPara with recent changes to ICU algorithm. r=smontagu

This commit is contained in:
Ted Clancy 2015-05-13 13:11:57 -04:00
parent 0ea8611993
commit d184ae355d

View File

@ -324,7 +324,7 @@ nsresult nsBidi::SetPara(const char16_t *aText, int32_t aLength,
if (mIsolateCount <= SIMPLE_ISOLATES_SIZE) {
mIsolates = mSimpleIsolates;
} else {
if (mIsolateCount <= (int32_t) mIsolatesSize) {
if (mIsolateCount * sizeof(Isolate) <= mIsolatesSize) {
mIsolates = mIsolatesMemory;
} else {
if (GETINITIALISOLATESMEMORY(mIsolateCount)) {