mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1173415 - Fix incorrect mask used for nsBidi::mFlags [r=smontagu]
LRI and RLI are values of type DirProp (uint8_t). The DIRPROP_FLAG macro is needed to convert them to bits in the 32-bit `flags` variable.
This commit is contained in:
parent
2ca5ed0f1f
commit
67b4ace7f4
@ -505,7 +505,7 @@ void nsBidi::GetDirProps(const char16_t *aText)
|
||||
} else if (state == SEEKING_STRONG_FOR_FSI) {
|
||||
if (stackLast <= NSBIDI_MAX_EXPLICIT_LEVEL) {
|
||||
dirProps[isolateStartStack[stackLast]] = LRI;
|
||||
flags |= LRI;
|
||||
flags |= DIRPROP_FLAG(LRI);
|
||||
}
|
||||
state = LOOKING_FOR_PDI;
|
||||
}
|
||||
@ -518,7 +518,7 @@ void nsBidi::GetDirProps(const char16_t *aText)
|
||||
} else if (state == SEEKING_STRONG_FOR_FSI) {
|
||||
if (stackLast <= NSBIDI_MAX_EXPLICIT_LEVEL) {
|
||||
dirProps[isolateStartStack[stackLast]] = RLI;
|
||||
flags |= RLI;
|
||||
flags |= DIRPROP_FLAG(RLI);
|
||||
}
|
||||
state = LOOKING_FOR_PDI;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user