diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-05-31 18:08:56 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-05-31 18:08:56 +0000 |
commit | 574a2a49b7287cf9132a8e00cdbc5f4828aec941 (patch) | |
tree | e2002d53645041f6d496d28237e364f7edc3db20 /gdb/stabsread.c | |
parent | 89da237fe9856da46344030f65c40768b75ec114 (diff) | |
download | gdb-574a2a49b7287cf9132a8e00cdbc5f4828aec941.zip gdb-574a2a49b7287cf9132a8e00cdbc5f4828aec941.tar.gz gdb-574a2a49b7287cf9132a8e00cdbc5f4828aec941.tar.bz2 |
* stabsread.c (read_huge_number): Don't accept '0' + radix as part
of number, just through '0' + radix - 1.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 531b63b..0fdacb0 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -3122,7 +3122,7 @@ read_huge_number (pp, end, bits) } upper_limit = LONG_MAX / radix; - while ((c = *p++) >= '0' && c <= ('0' + radix)) + while ((c = *p++) >= '0' && c < ('0' + radix)) { if (n <= upper_limit) { |