mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
* 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>.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user