From 73bb0fe7953f501747fb6b7c315beda4f253a216 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 12 Aug 2014 10:24:06 +0100 Subject: Resolves: fdo#81972 determining capitalization of >=63335 char word hangs Change-Id: I929eb86021883852381df1edf8bf1fb2150e348d --- linguistic/source/misc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linguistic/source/misc.cxx') diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index c1cede4fceae..db7d0300121f 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -615,7 +615,7 @@ CapType SAL_CALL capitalType(const OUString& aTerm, CharClass * pCC) { OUString aStr(aTerm); sal_Int32 nc = 0; - for (sal_uInt16 tindex = 0; tindex < tlen; tindex++) + for (sal_Int32 tindex = 0; tindex < tlen; ++tindex) { if (pCC->getCharacterType(aStr,tindex) & ::com::sun::star::i18n::KCharacterType::UPPER) nc++; -- cgit