From 00a1430e3f97ae7700d53da8ef6a6eaa100ca78d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 25 Feb 2007 21:44:22 +0000 Subject: * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Reset refcntr in new thread, don't just decrement it. Patch by Suzuki K P . --- stdlib/strtod_l.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib') 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; -- cgit v1.2.3