diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-02-25 21:44:22 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-02-25 21:44:22 +0000 |
commit | 00a1430e3f97ae7700d53da8ef6a6eaa100ca78d (patch) | |
tree | 818148e0707af54af8dc58c62c6238ad2cad0f2c /stdlib/strtod_l.c | |
parent | 621c133d40be92557f611e63c86ef78efd3cb7bd (diff) | |
download | glibc-00a1430e3f97ae7700d53da8ef6a6eaa100ca78d.tar.gz glibc-00a1430e3f97ae7700d53da8ef6a6eaa100ca78d.tar.xz glibc-00a1430e3f97ae7700d53da8ef6a6eaa100ca78d.zip |
* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in
new thread, don't just decrement it. Patch by Suzuki K P <suzuki@in.ibm.com>.
Diffstat (limited to 'stdlib/strtod_l.c')
-rw-r--r-- | stdlib/strtod_l.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c index 1c8ec429dc..4033e3bef8 100644 --- a/stdlib/strtod_l.c +++ b/stdlib/strtod_l.c @@ -1031,13 +1031,13 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc) exponent -= incr; } - if (int_no + exponent > MAX_10_EXP + 1) + if (__builtin_expect (int_no + exponent > MAX_10_EXP + 1, 0)) { __set_errno (ERANGE); return negative ? -FLOAT_HUGE_VAL : FLOAT_HUGE_VAL; } - if (exponent < MIN_10_EXP - (DIG + 1)) + if (__builtin_expect (exponent < MIN_10_EXP - (DIG + 1), 0)) { __set_errno (ERANGE); return 0.0; |