diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-18 19:52:14 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-18 19:52:14 +0000 |
commit | 8b7d28651c71aab4edf732271ade54a659da20fc (patch) | |
tree | 42d870548891074e431ac23a95ae8325afa29e69 /libiberty | |
parent | 1aac412fd50f6f8df1be4cf91c74b24254231bca (diff) | |
download | gcc-8b7d28651c71aab4edf732271ade54a659da20fc.tar.gz |
2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
* strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
seen.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50994 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/strtod.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 258a4d6fd4e..4829c855991 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com> + + * strtod.c (strtod): Increment 8 chars, not 7, when `infinity' + seen. + 2002-03-12 Mark Mitchell <mark@codesourcery.com> * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright diff --git a/libiberty/strtod.c b/libiberty/strtod.c index 6b69ccfa8d2..97fc9339344 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 |