From 3f4cb3d37fb74db3580029624c8acd83dd5f4787 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Mon, 13 Apr 2009 16:31:01 +0000 Subject: Fix OpenSolaris gcc4 warnings: iovec type mismatches, missing 'static' git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7103 c046a42c-6fe2-441c-8c8c-71466251a162 --- fpu/softfloat-macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpu') diff --git a/fpu/softfloat-macros.h b/fpu/softfloat-macros.h index 0502fb8..7838228 100644 --- a/fpu/softfloat-macros.h +++ b/fpu/softfloat-macros.h @@ -590,12 +590,12 @@ static bits32 estimateSqrt32( int16 aExp, bits32 a ) index = ( a>>27 ) & 15; if ( aExp & 1 ) { - z = 0x4000 + ( a>>17 ) - sqrtOddAdjustments[ index ]; + z = 0x4000 + ( a>>17 ) - sqrtOddAdjustments[ (int)index ]; z = ( ( a / z )<<14 ) + ( z<<15 ); a >>= 1; } else { - z = 0x8000 + ( a>>17 ) - sqrtEvenAdjustments[ index ]; + z = 0x8000 + ( a>>17 ) - sqrtEvenAdjustments[ (int)index ]; z = a / z + z; z = ( 0x20000 <= z ) ? 0xFFFF8000 : ( z<<15 ); if ( z <= a ) return (bits32) ( ( (sbits32) a )>>1 ); -- cgit v1.1