From 0ffc8cefc7a1aae839da7093ab324ffae09499fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 26 Nov 2012 10:55:26 +0100 Subject: [PATCH] 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 --- composite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composite.cpp b/composite.cpp index 8eb5b3f994..0d8c909a31 100644 --- a/composite.cpp +++ b/composite.cpp @@ -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 }