From 6f6eebbcb9471106a7777329a970ac0aed25e24f Mon Sep 17 00:00:00 2001 From: Tomoaki Teshima Date: Tue, 7 Jun 2016 18:31:18 +0900 Subject: [PATCH] fix warning --- modules/core/src/convert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/convert.cpp b/modules/core/src/convert.cpp index 432494dd31..d44e5eb8cd 100644 --- a/modules/core/src/convert.cpp +++ b/modules/core/src/convert.cpp @@ -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++;