From: H.J. Lu Date: Sat, 20 Oct 2001 22:41:09 +0000 (+0000) Subject: 2001-10-20 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8420dfca801a0cbe38dc198b465278f7b0e16bdf;p=binutils-gdb.git 2001-10-20 H.J. Lu * config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit. (cirrus_parse_offset): Likewise. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 3f1c03cc865..acea65f10b8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-10-20 H.J. Lu + + * config/tc-arm.c (do_c_shift): Use ISDIGIT instead of isdigit. + (cirrus_parse_offset): Likewise. + 2001-10-19 Nick Clifton * config/tc-arm.c: Restore line_comment_chars. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index c9bb6e0cb7f..9fafd9af6fb 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)