diff options
author | Stuart Griffith <Stuart_Griffith@credence.com> | 2002-03-18 19:52:14 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-03-18 19:52:14 +0000 |
commit | ed30079302a7b50092afc26ce47809ab03c59483 (patch) | |
tree | 42d870548891074e431ac23a95ae8325afa29e69 /libiberty/strtod.c | |
parent | 097955f2b05559906c8cee612eaffd06c97c2f20 (diff) | |
download | gcc-ed30079302a7b50092afc26ce47809ab03c59483.tar.gz |
strtod.c (strtod): Increment 8 chars, not 7, when `infinity' seen.
2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
* strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
seen.
From-SVN: r50994
Diffstat (limited to 'libiberty/strtod.c')
-rw-r--r-- | libiberty/strtod.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |