diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-10-20 22:41:09 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-10-20 22:41:09 +0000 |
commit | 8420dfca801a0cbe38dc198b465278f7b0e16bdf (patch) | |
tree | 2c77040b1d80c658e0d2d446e0f46fdc06f0c9a8 /gas/config/tc-arm.c | |
parent | 27e4fc867bc7469c6127d87bee965b46f0dfb2a1 (diff) | |
download | gdb-8420dfca801a0cbe38dc198b465278f7b0e16bdf.zip gdb-8420dfca801a0cbe38dc198b465278f7b0e16bdf.tar.gz gdb-8420dfca801a0cbe38dc198b465278f7b0e16bdf.tar.bz2 |
2001-10-20 H.J. Lu <hjl@gnu.org>
* config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit.
(cirrus_parse_offset): Likewise.
Diffstat (limited to 'gas/config/tc-arm.c')
-rw-r--r-- | gas/config/tc-arm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index c9bb6e0..9fafd9a 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -6557,7 +6557,7 @@ do_c_shift (str, flags, mode) if (*str == '#') ++str; - if (!isdigit (*str) && *str != '-') + if (!ISDIGIT (*str) && *str != '-') { inst.error = _("expecting immediate, 7bit operand"); return; @@ -6569,7 +6569,7 @@ do_c_shift (str, flags, mode) ++str; } - for (imm = 0; *str && isdigit (*str); ++str) + for (imm = 0; *str && ISDIGIT (*str); ++str) imm = imm * 10 + *str - '0'; if (imm > 64) @@ -6619,13 +6619,13 @@ cirrus_parse_offset (str, negative) ++p; } - if (!isdigit (*p)) + if (!ISDIGIT (*p)) { inst.error = _("offset expected"); return 0; } - for (offset = 0; *p && isdigit (*p); ++p) + for (offset = 0; *p && ISDIGIT (*p); ++p) offset = offset * 10 + *p - '0'; if (offset > 0xff) |