summaryrefslogtreecommitdiff
path: root/sc/source/core/inc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-10-25 22:43:43 +0200
committerEike Rathke <erack@redhat.com>2018-10-26 01:26:39 +0200
commit9e5d7dff301ccef35429ee5cb7e3b3b80b318993 (patch)
tree49baa175048241a978c2620b2870ed3ddbbf4ca9 /sc/source/core/inc
parentadbff0473751cde45e24bc06d524e858c68cc423 (diff)
Use SAL_MAX_INT32 in CheckStringPositionArgument()
... as that does not affect the result string length. Change-Id: Ia4426b4444845b3966da6a8c46089d8a98a38cb0 Reviewed-on: https://gerrit.libreoffice.org/62374 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'sc/source/core/inc')
-rw-r--r--sc/source/core/inc/interpre.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx
index f63cdced71b9..85f96435ba9a 100644
--- a/sc/source/core/inc/interpre.hxx
+++ b/sc/source/core/inc/interpre.hxx
@@ -1081,9 +1081,9 @@ inline bool ScInterpreter::CheckStringPositionArgument( double & fVal )
fVal = 0.0;
return false;
}
- else if (fVal > kScInterpreterMaxStrLen)
+ else if (fVal > SAL_MAX_INT32)
{
- fVal = static_cast<double>(kScInterpreterMaxStrLen);
+ fVal = static_cast<double>(SAL_MAX_INT32);
return false;
}
return true;