Followup to checkin for bug 120992. It asserted in an edge case which this fixes. r=mozbot

This commit is contained in:
bratell%lysator.liu.se 2002-05-18 17:33:37 +00:00
Родитель 0e3b7eb595
Коммит c62b9f6f33
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -1097,6 +1097,10 @@ JS_strtod(CONST char *s00, char **se, int *err)
bb = bd = bs = delta = NULL;
sign = nz0 = nz = 0;
rv = 0.;
/* Locking for Balloc's shared buffers that will be used in this block */
ACQUIRE_DTOA_LOCK();
for(s = s00;;s++) switch(*s) {
case '-':
sign = 1;
@ -1119,8 +1123,6 @@ JS_strtod(CONST char *s00, char **se, int *err)
goto break2;
}
break2:
/* Locking for Balloc's shared buffers that will be used in this block */
ACQUIRE_DTOA_LOCK();
if (*s == '0') {
nz0 = 1;