Kaydet (Commit) b9bcc9c5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

...and nDigits > 9 is harmless in following for loop and need not be capped

Change-Id: I30c4005e5983f5007edfed692b74f07b31899755
üst 71448690
......@@ -1123,7 +1123,7 @@ bool Converter::convertDuration(util::Duration& rDuration,
if (-1 != nTemp)
{
nNanoSeconds = nTemp;
sal_Int32 nDigits = std::min<sal_Int32>(nPos - nStart, 9);
sal_Int32 nDigits = nPos - nStart;
assert(nDigits >= 0);
for (; nDigits < 9; ++nDigits)
{
......
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