Commit 113f18e9 authored by Laurent Aimar's avatar Laurent Aimar

Fixed potential infinite loop.

parent cba23b29
...@@ -85,7 +85,7 @@ static unsigned int GetF80BE( const uint8_t p[10] ) ...@@ -85,7 +85,7 @@ static unsigned int GetF80BE( const uint8_t p[10] )
int i_exp = 30 - p[1]; int i_exp = 30 - p[1];
unsigned int i_last = 0; unsigned int i_last = 0;
while( i_exp-- ) while( i_exp-- > 0 )
{ {
i_last = i_mantissa; i_last = i_mantissa;
i_mantissa >>= 1; i_mantissa >>= 1;
......
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