Remove not-needed cast to int

The compared values are uint, so there's no need to cast and it is
incorrect in this case.

REVIEW: 107469
icc-effect-5.14.5
Martin Gräßlin 2012-11-26 10:55:26 +01:00
parent b0da055850
commit 0ffc8cefc7
1 changed files with 1 additions and 1 deletions

View File

@ -673,7 +673,7 @@ void Compositor::setCompositeTimer()
else // w/o vsync we just jump to the next demanded tick
// the "1" will ensure we don't block out the eventloop - the system's just not faster
// "0" would be sufficient, but the compositor isn't the WMs only task
m_nextFrameDelay = padding = (padding > (int)fpsInterval) ? 1 : ((fpsInterval - padding) >> 10);
m_nextFrameDelay = padding = (padding > fpsInterval) ? 1 : ((fpsInterval - padding) >> 10);
compositeTimer.start(qMin(padding, 250u), this); // force 4fps minimum
}