mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 09:35:40 +00:00
fpu/softfloat: int_to_float ensure r fully initialised
Reported by Coverity (CID1390635). We ensure this for uint_to_float later on so we might as well mirror that. Backports commit a5a5f5e2e437db6c19164b734f838a7bf9e0c5ec from qemu
This commit is contained in:
parent
664396a635
commit
99de568b7d
|
@ -1525,7 +1525,7 @@ FLOAT_TO_UINT(64, 64)
|
|||
|
||||
static FloatParts int_to_float(int64_t a, float_status *status)
|
||||
{
|
||||
FloatParts r;
|
||||
FloatParts r = {0};
|
||||
if (a == 0) {
|
||||
r.cls = float_class_zero;
|
||||
r.sign = false;
|
||||
|
|
Loading…
Reference in a new issue