From 7ceac86f49b564954f5bde477c4281f407be1399 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Fri, 22 Jan 2016 15:09:21 +0000 Subject: [PATCH] softfloat: fix return type of roundAndPackFloat16 The roundAndPackFloat16 function should return a float16 value, not a float32 one. Fix that. Cc: Peter Maydell Signed-off-by: Aurelien Jarno Reviewed-by: Peter Maydell Message-id: 1452700993-6570-1-git-send-email-aurelien@aurel32.net Signed-off-by: Peter Maydell --- fpu/softfloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 850d08fc17..162c21122c 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -3368,7 +3368,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, float_status *status) {