[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Oct 25 23:27:09 UTC 2018


 sc/source/core/inc/interpre.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9e5d7dff301ccef35429ee5cb7e3b3b80b318993
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Thu Oct 25 22:43:43 2018 +0200
Commit:     Eike Rathke <erack at 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 <erack at 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;


More information about the Libreoffice-commits mailing list