QtConcurrentIterateKernel: fix warning
src\concurrent\qtconcurrentiteratekernel.cpp(134): warning C5055: operator '*': deprecated between enumerations and floating-point types Change-Id: I934e767e77e9393e1da3adc390dc8e252e7f5b6a Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> (cherry picked from commit b86176abf6a66b20cebbcb53958229590b4c2253) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
cdd056fded
commit
99b269f0b7
@ -131,7 +131,7 @@ void BlockSizeManager::timeAfterUser()
|
||||
if (controlPartElapsed.isMedianValid() == false)
|
||||
return;
|
||||
|
||||
if (controlPartElapsed.median() * TargetRatio < userPartElapsed.median())
|
||||
if (controlPartElapsed.median() * int(TargetRatio) < userPartElapsed.median())
|
||||
return;
|
||||
|
||||
m_blockSize = qMin(m_blockSize * 2, maxBlockSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user