fix warning

This commit is contained in:
Tomoaki Teshima 2016-06-07 18:31:18 +09:00
parent fbfd3158a7
commit 6f6eebbcb9

View File

@ -4504,7 +4504,7 @@ static short convertFp16SW(float fp32)
// special cases to round up
bitShift = exponent + 24;
unsigned int threshold = ( ( 0x400000 >> bitShift ) | ( ( ( significand & ( 0x800000 >> bitShift ) ) >> ( 126 - a.fmt.exponent ) ) ^ 1 ) );
int threshold = ( ( 0x400000 >> bitShift ) | ( ( ( significand & ( 0x800000 >> bitShift ) ) >> ( 126 - a.fmt.exponent ) ) ^ 1 ) );
if( threshold <= ( significand & ( 0xffffff >> ( exponent + 25 ) ) ) )
{
fp16Significand++;