From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyR4b-000652-GO for qemu-devel@nongnu.org; Sat, 21 Jun 2014 15:35:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyR4a-0001iw-Cx for qemu-devel@nongnu.org; Sat, 21 Jun 2014 15:35:37 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:101::1]:55874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyR4a-0001iI-6l for qemu-devel@nongnu.org; Sat, 21 Jun 2014 15:35:36 -0400 From: Aurelien Jarno Date: Sat, 21 Jun 2014 21:35:31 +0200 Message-Id: <1403379331-14433-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH] softfloat: fix return type of roundAndPackFloat16 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Aurelien Jarno The roundAndPackFloat16 function should return a float16 value, not a float32 one. Fix that. Cc: Peter Maydell Signed-off-by: Aurelien Jarno --- fpu/softfloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index e00a6fb..3b19736 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -3209,7 +3209,7 @@ static float16 packFloat16(flag zSign, int_fast16_t zExp, uint16_t zSig) | Binary Floating-Point Arithmetic. *----------------------------------------------------------------------------*/ -static float32 roundAndPackFloat16(flag zSign, int_fast16_t zExp, +static float16 roundAndPackFloat16(flag zSign, int_fast16_t zExp, uint32_t zSig, flag ieee STATUS_PARAM) { int maxexp = ieee ? 29 : 30; -- 1.7.10.4