summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18npool/source/characterclassification/cclass_unicode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx
index 56550597e1d4..a729ca8f4c3b 100644
--- a/i18npool/source/characterclassification/cclass_unicode.cxx
+++ b/i18npool/source/characterclassification/cclass_unicode.cxx
@@ -205,7 +205,7 @@ cclass_Unicode::getStringType( const OUString& Text, sal_Int32 nPos, sal_Int32 n
sal_Int32 result = 0;
- while (nCount && nPos < Text.getLength())
+ while (nCount > 0 && nPos < Text.getLength())
{
sal_Int32 nOrigPos = nPos;
result |= getCharType(Text, &nPos, 1);