mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Followup to checkin for bug 120992. It asserted in an edge case which this fixes. r=mozbot
This commit is contained in:
parent
4b6abec9c0
commit
6778e86241
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user