Kaydet (Commit) 9e5d7dff authored tarafından Eike Rathke's avatar Eike Rathke

Use SAL_MAX_INT32 in CheckStringPositionArgument()

... as that does not affect the result string length.

Change-Id: Ia4426b4444845b3966da6a8c46089d8a98a38cb0
Reviewed-on: https://gerrit.libreoffice.org/62374Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst adbff047
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment