mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fixed double-as-integer check not handling negative zero (bug 452170, r=gal).
This commit is contained in:
parent
a2fdc866ff
commit
f720beb914
@ -295,7 +295,7 @@ static bool isPromoteInt(LIns* i)
|
||||
{
|
||||
jsdouble d;
|
||||
return i->isop(LIR_i2f) || i->isconst() ||
|
||||
(i->isconstq() && ((d = i->constvalf()) == (jsdouble)(jsint)d));
|
||||
(i->isconstq() && ((d = i->constvalf()) == (jsdouble)(jsint)d) && !JSDOUBLE_IS_NEGZERO(d));
|
||||
}
|
||||
|
||||
static bool isPromoteUint(LIns* i)
|
||||
|
Loading…
Reference in New Issue
Block a user