Fix infinite loop

CID 176641:  Control flow issues  (STRAY_SEMICOLON)
A "while" statement with no block followed by a stand-alone block
is suspicious.

CID 176639:  Program hangs  (INFINITE_LOOP)
If "dx > 64L" is initially true then it will remain true.

Fixes a bug introduced in 8c31f75fd3.

Coverity-Id: 176641
Coverity-Id: 176639
Change-Id: I5daa563fe94316633f9525583d8addb8864c42c0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
bb10
Jesus Fernandez 2017-02-12 11:11:28 +01:00 committed by Jesus Fernandez
parent 08a84a8af8
commit 78236be8d7
1 changed files with 1 additions and 1 deletions

View File

@ -1000,7 +1000,7 @@ QT_FT_END_STMNT
/* each bisection predictably reduces deviation exactly 4-fold. */
/* Even 32-bit deviation would vanish after 16 bisections. */
draw = 1;
while ( dx > ONE_PIXEL / 4 );
while ( dx > ONE_PIXEL / 4 )
{
dx >>= 2;
draw <<= 1;