summaryrefslogtreecommitdiffstats
path: root/i18npool/source/nativenumber
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-27 12:57:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-27 12:57:23 +0100
commit1b3de9b6cde3a24b489fa3b42f53e9225666138a (patch)
treefe3556e3254bf744c83af7a1d69c5be01bf4d82a /i18npool/source/nativenumber
parentloplugin:loopvartoosmall (diff)
downloadcore-1b3de9b6cde3a24b489fa3b42f53e9225666138a.tar.gz
core-1b3de9b6cde3a24b489fa3b42f53e9225666138a.zip
loplugin:loopvartoosmall
Change-Id: I1842a5e047e4566371b62511ad5b56d466e717da
Diffstat (limited to 'i18npool/source/nativenumber')
-rw-r--r--i18npool/source/nativenumber/nativenumbersupplier.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx
index 01ef7dc3000c..43c81b5123a6 100644
--- a/i18npool/source/nativenumber/nativenumbersupplier.cxx
+++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx
@@ -97,9 +97,8 @@ bool SAL_CALL AsciiToNative_numberMaker(const sal_Unicode *str, sal_Int32 begin,
sal_Unicode multiChar = (multiChar_index == -1 ? 0 : number->multiplierChar[multiChar_index]);
if ( len <= number->multiplierExponent[number->exponentCount-1] ) {
if (number->multiplierExponent[number->exponentCount-1] > 1) {
- sal_Int16 i;
bool bNotZero = false;
- for (i = 0; i < len; i++, begin++) {
+ for (sal_Int32 i = 0; i < len; i++, begin++) {
if (bNotZero || str[begin] != NUMBER_ZERO) {
dst[count] = numberChar[str[begin] - NUMBER_ZERO];
if (useOffset)