Fixed -0 being treated as a promotable unsigned integer (bug 455758, r=gal).

This commit is contained in:
David Anderson 2008-09-18 14:19:17 -07:00
parent 708f08ca9c
commit 40d94b8bed

View File

@ -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)