From: DJ Delorie Date: Mon, 18 Mar 2002 20:01:35 +0000 (+0000) Subject: merge from gcc X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=1504972f60f011d4d79b032f164cafa4a45bf4c6;p=deliverable%2Fbinutils-gdb.git merge from gcc --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 01c73c94bc..f92fef840e 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2002-03-18 Stuart Griffith + + * strtod.c (strtod): Increment 8 chars, not 7, when `infinity' + seen. + 2002-03-12 Mark Mitchell * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright diff --git a/libiberty/strtod.c b/libiberty/strtod.c index 6b69ccfa8d..97fc933934 100644 --- a/libiberty/strtod.c +++ b/libiberty/strtod.c @@ -1,5 +1,5 @@ /* Implementation of strtod for systems with atof. - Copyright (C) 1991, 1995 Free Software Foundation, Inc. + Copyright (C) 1991, 1995, 2002 Free Software Foundation, Inc. This file is part of the libiberty library. This library is free software; you can redistribute it and/or modify it under the @@ -75,7 +75,7 @@ strtod (str, ptr) && (p[6] == 't' || p[6] == 'T') && (p[7] == 'y' || p[7] == 'Y')) { - *ptr = p + 7; + *ptr = p + 8; return atof (str); } else