Remove spurious condition in test for closing parenthesis.
authorYoshinori Sato <ysato@users.sourceforge.jp>
Wed, 13 Jan 2016 17:47:34 +0000 (17:47 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 13 Jan 2016 17:47:34 +0000 (17:47 +0000)
* config/tc-h8300.c (get_operand): Remove spurious condition in
test for closing parenthesis.

gas/ChangeLog
gas/config/tc-h8300.c

index 4db90f65ad052cdbc66a8d5cf1cda77a0b409ee4..0b9f95bcf2919d4ba0f5d1de44dfda27bdbbd57e 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-13  Yoshinori Sato  <ysato@users.sourceforge.jp>
+
+       * config/tc-h8300.c (get_operand): Remove spurious condition in
+       test for closing parenthesis.
+
 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
 
        * config/tc-arm.c (arm_ext_v8_2): New.
index 72e5cec2aa2f07c9020144caed3d05d8b433d662..063c40dcfb2fa9b120575f02eae6fc61a8f8e458 100644 (file)
@@ -826,7 +826,7 @@ get_operand (char **ptr, struct h8_op *op, int direction)
            op->mode |= DISP | direction;
          src = skip_colonthing (src, &op->mode);
 
-         if (*src != ')' && '(')
+         if (*src != ')')
            {
              as_bad (_("expected @(exp, reg16)"));
              return;