From 0968369acb10d8e7a621e0c1a0a32caae0418c06 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 11 Jun 2023 13:49:47 +0200 Subject: [PATCH] Clarified a condition in softfloat-specialize.h to fix a warning. --- src/cpu/softfloat/softfloat-specialize.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpu/softfloat/softfloat-specialize.h b/src/cpu/softfloat/softfloat-specialize.h index 11326ecb6..302ce53e4 100644 --- a/src/cpu/softfloat/softfloat-specialize.h +++ b/src/cpu/softfloat/softfloat-specialize.h @@ -548,7 +548,8 @@ BX_CPP_INLINE floatx80 packFloatx80(int zSign, Bit32s zExp, Bit64u zSig) BX_CPP_INLINE int floatx80_is_nan(floatx80 a) { - return ((a.exp & 0x7FFF) == 0x7FFF) && (Bit64s) (a.fraction<<1); + // return ((a.exp & 0x7FFF) == 0x7FFF) && (Bit64s) (a.fraction<<1); + return ((a.exp & 0x7FFF) == 0x7FFF) && (((Bit64s) (a.fraction<<1)) != 0); } /*----------------------------------------------------------------------------