mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 11:21:09 +00:00
m68k: Fix floatx80_lognp1 (Coverity CID1390587)
return the result of packFloatx80() instead of dropping it. Backports commit 981348af5c3c72335d95f6877abf702d80176eb3 from qemu
This commit is contained in:
parent
bf16c6daee
commit
ebf0c8f9ca
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue