mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fixed -0 being treated as a promotable unsigned integer (bug 455758, r=gal).
This commit is contained in:
parent
708f08ca9c
commit
40d94b8bed
@ -365,7 +365,7 @@ static bool isPromoteUint(LIns* i)
|
||||
{
|
||||
jsdouble d;
|
||||
return isu2f(i) || i->isconst() ||
|
||||
(i->isconstq() && ((d = i->constvalf()) == (jsdouble)(jsuint)d));
|
||||
(i->isconstq() && (d = i->constvalf()) == (jsdouble)(jsuint)d && !JSDOUBLE_IS_NEGZERO(d));
|
||||
}
|
||||
|
||||
static bool isPromote(LIns* i)
|
||||
|
Loading…
Reference in New Issue
Block a user