diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2004-02-10 23:05:58 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@gcc.gnu.org> | 2004-02-10 23:05:58 +0000 |
commit | 52bac94926a17b604b54fe3ffa9ecb68ef719b0b (patch) | |
tree | bcb9f6cee47f3d63907da0fe781fce9cc926a71e /gcc/real.c | |
parent | 2493deee555bff3a4be1cc3ef011b4f7a4efdf71 (diff) | |
download | gcc-52bac94926a17b604b54fe3ffa9ecb68ef719b0b.zip gcc-52bac94926a17b604b54fe3ffa9ecb68ef719b0b.tar.gz gcc-52bac94926a17b604b54fe3ffa9ecb68ef719b0b.tar.bz2 |
re PR c/14088 (Hexfloat constants with uppercase 0X prefix fail)
PR c/14088
real.c (real_from_string): Look for 'X' as well as 'x' in
hexfloat strings.
From-SVN: r77619
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |