summaryrefslogtreecommitdiff
path: root/sal/textenc
diff options
context:
space:
mode:
Diffstat (limited to 'sal/textenc')
-rw-r--r--sal/textenc/convertbig5hkscs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sal/textenc/convertbig5hkscs.c b/sal/textenc/convertbig5hkscs.c
index 2237a96475d9..0839e56acee1 100644
--- a/sal/textenc/convertbig5hkscs.c
+++ b/sal/textenc/convertbig5hkscs.c
@@ -119,12 +119,10 @@ sal_Size ImplConvertBig5HkscsToUnicode(ImplTextConverterData const * pData,
}
if (nUnicode == 0xFFFF)
{
- sal_uInt32 nFirst = pBig5Data[nRow].mnTrailStart;
- if (nChar >= nFirst
- && nChar <= pBig5Data[nRow].mnTrailEnd)
+ sal_uInt32 n = pBig5Data[nRow].mnTrailStart;
+ if (nChar >= n && nChar <= pBig5Data[nRow].mnTrailEnd)
{
- nUnicode
- = pBig5Data[nRow].mpToUniTrailTab[nChar - nFirst];
+ nUnicode = pBig5Data[nRow].mpToUniTrailTab[nChar - n];
if (nUnicode == 0)
nUnicode = 0xFFFF;
OSL_VERIFY(!ImplIsHighSurrogate(nUnicode));