diff options
author | Laurent Vivier <laurent@vivier.eu> | 2018-04-30 19:01:55 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-05-01 15:36:52 +0200 |
commit | 981348af5c3c72335d95f6877abf702d80176eb3 (patch) | |
tree | 6f182bf35d2d85c67a801cc9fc3792bb96b6a87f /target/m68k/softfloat.c | |
parent | 355d4d1c00e708907ff391c24ca708f1c9c06bf0 (diff) |
m68k: Fix floatx80_lognp1 (Coverity CID1390587)
return the result of packFloatx80() instead of
dropping it.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180430170156.1860-1-laurent@vivier.eu>
Diffstat (limited to 'target/m68k/softfloat.c')
-rw-r--r-- | target/m68k/softfloat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/m68k/softfloat.c b/target/m68k/softfloat.c index dffb371c71..2c069a5efb 100644 --- a/target/m68k/softfloat.c +++ b/target/m68k/softfloat.c @@ -334,7 +334,8 @@ floatx80 floatx80_lognp1(floatx80 a, float_status *status) if (aSign && aExp >= one_exp) { if (aExp == one_exp && aSig == one_sig) { float_raise(float_flag_divbyzero, status); - packFloatx80(aSign, floatx80_infinity.high, floatx80_infinity.low); + return packFloatx80(aSign, floatx80_infinity.high, + floatx80_infinity.low); } float_raise(float_flag_invalid, status); return floatx80_default_nan(status); |