From 443e40537a056309fb000265b26363d08d09c18b Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Mon, 25 May 2020 23:37:40 -0700 Subject: sf: fix f16_to_ui8 Signed-off-by: Chih-Min Chao --- softfloat/f16_to_ui8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softfloat/f16_to_ui8.c b/softfloat/f16_to_ui8.c index 4914464..f9cfa7b 100644 --- a/softfloat/f16_to_ui8.c +++ b/softfloat/f16_to_ui8.c @@ -44,7 +44,7 @@ uint_fast8_t f16_to_ui8( float16_t a, uint_fast8_t roundingMode, bool exact ) if (sig32 > UINT8_MAX) { softfloat_exceptionFlags |= softfloat_flag_invalid; - return ui16_fromPosOverflow; + return ui8_fromPosOverflow; } else { return sig32; } -- cgit v1.1