Kaydet (Commit) b37f81f2 authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: arrayIndexThenCheck

Change-Id: If30664066e3f3f99c02244e248e72406380069aa
Reviewed-on: https://gerrit.libreoffice.org/51513Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 1b17bbc9
......@@ -3567,7 +3567,7 @@ void ScInterpreter::ScModalValue_MS()
nMaxIndex = i - 1;
nCount = 1;
}
while ( nOldVal == aArray[ i ] && i < nSize - 1 )
while ( (i < (nSize - 1)) && (nOldVal == aArray[ i ]) )
i++;
if ( ( nSize - i ) > nMax )
{
......
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