| Index: xfa/fgas/layout/fgas_linebreak.cpp
|
| diff --git a/xfa/fgas/layout/fgas_linebreak.cpp b/xfa/fgas/layout/fgas_linebreak.cpp
|
| index 8155af870a1788ccdfa09964e5826bfdd87b6a0f..4e5b405f5a4f1b581a82ac446e6a659222b39974 100644
|
| --- a/xfa/fgas/layout/fgas_linebreak.cpp
|
| +++ b/xfa/fgas/layout/fgas_linebreak.cpp
|
| @@ -276,11 +276,11 @@ void FX_GetLineBreakPositions(const FX_WCHAR* pwsText,
|
| FX_DWORD dwCur, dwNext;
|
| FX_WCHAR wch;
|
| wch = *pwsText++;
|
| - dwCur = kTextLayoutCodeProperties[(FX_WORD)wch] & 0x003F;
|
| + dwCur = kTextLayoutCodeProperties[(uint16_t)wch] & 0x003F;
|
| iLength--;
|
| for (int32_t i = 0; i < iLength; i++) {
|
| wch = *pwsText++;
|
| - dwNext = kTextLayoutCodeProperties[(FX_WORD)wch] & 0x003F;
|
| + dwNext = kTextLayoutCodeProperties[(uint16_t)wch] & 0x003F;
|
| if (dwNext == FX_CBP_SP) {
|
| pBrkType[i] = FX_LBT_PROHIBITED_BRK;
|
| } else {
|
| @@ -301,11 +301,11 @@ void FX_GetLineBreakPositions(const FX_WCHAR* pwsText,
|
| FX_DWORD dwCur, dwNext;
|
| FX_WCHAR wch;
|
| wch = *pwsText++;
|
| - dwCur = kTextLayoutCodeProperties[(FX_WORD)wch] & 0x003F;
|
| + dwCur = kTextLayoutCodeProperties[(uint16_t)wch] & 0x003F;
|
| iLength--;
|
| for (int32_t i = 0; i < iLength; i++) {
|
| wch = *pwsText++;
|
| - dwNext = kTextLayoutCodeProperties[(FX_WORD)wch] & 0x003F;
|
| + dwNext = kTextLayoutCodeProperties[(uint16_t)wch] & 0x003F;
|
| if (dwNext == FX_CBP_SP) {
|
| eType = FX_LBT_PROHIBITED_BRK;
|
| } else {
|
|
|