Skip to content

Commit

Permalink
Bug 1163583 - Update SetPara with recent changes to ICU algorithm. r=…
Browse files Browse the repository at this point in the history
…smontagu
  • Loading branch information
tedders1 committed May 13, 2015
1 parent 0ea8611 commit d184ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/base/nsBidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d184ae3

Please sign in to comment.