sc/source/core/inc/interpre.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9e5d7dff301ccef35429ee5cb7e3b3b80b318993 Author: Eike Rathke <er...@redhat.com> AuthorDate: Thu Oct 25 22:43:43 2018 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Fri Oct 26 01:26:39 2018 +0200 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 <er...@redhat.com> Tested-by: Jenkins 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits