diff options
author | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 23:05:58 +0000 |
---|---|---|
committer | dannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 23:05:58 +0000 |
commit | cd2749e38a78e55b80139c92b2fe26f0b71c0f74 (patch) | |
tree | bcb9f6cee47f3d63907da0fe781fce9cc926a71e /gcc/real.c | |
parent | 533741d3ff96903ba0f319153c2001131fc7d6bf (diff) | |
download | gcc-cd2749e38a78e55b80139c92b2fe26f0b71c0f74.tar.gz |
PR c/14088
real.c (real_from_string): Look for 'X' as well as 'x' in
hexfloat strings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77619 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c index 474da31df6c..ed671db0e4d 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -1769,7 +1769,7 @@ real_from_string (REAL_VALUE_TYPE *r, const char *str) else if (*str == '+') str++; - if (str[0] == '0' && str[1] == 'x') + if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) { /* Hexadecimal floating point. */ int pos = SIGNIFICAND_BITS - 4, d; |