Fix from Gavin Reaney <gavin@picsel.com> for 357392, r=me.

This commit is contained in:
brendan%mozilla.org 2006-11-22 22:32:47 +00:00
Родитель 6f99b22986
Коммит 6f0e6d64a9
1 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -1375,16 +1375,16 @@ dig_done:
case 'i':
case 'I':
if (match(&s,"nfinity")) {
word0(rv) = 0x7ff00000;
word1(rv) = 0;
set_word0(rv, 0x7ff00000);
set_word1(rv, 0);
goto ret;
}
break;
case 'n':
case 'N':
if (match(&s, "an")) {
word0(rv) = NAN_WORD0;
word1(rv) = NAN_WORD1;
set_word0(rv, NAN_WORD0);
set_word1(rv, NAN_WORD1);
goto ret;
}
}
@ -1454,8 +1454,8 @@ dig_done:
rv = HUGE_VAL;
#else
/* Can't trust HUGE_VAL */
word0(rv) = Exp_mask;
word1(rv) = 0;
set_word0(rv, Exp_mask);
set_word1(rv, 0);
#endif
if (bd0)
goto retfree;
@ -1880,6 +1880,7 @@ nomem:
Bfree(bs);
Bfree(bd0);
Bfree(delta);
RELEASE_DTOA_LOCK();
*err = JS_DTOA_ENOMEM;
return 0;
}
@ -2995,6 +2996,7 @@ JS_dtobasestr(int base, double d)
if (!b) {
nomem1:
Bfree(b);
RELEASE_DTOA_LOCK();
return NULL;
}
do {
@ -3029,6 +3031,7 @@ JS_dtobasestr(int base, double d)
if (mlo != mhi)
Bfree(mlo);
Bfree(mhi);
RELEASE_DTOA_LOCK();
return NULL;
}
JS_ASSERT(e < 0);