]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* expr.c (operand): Correct checks for ++ and --.
authorAlan Modra <amodra@gmail.com>
Fri, 16 Apr 2004 01:55:27 +0000 (01:55 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 16 Apr 2004 01:55:27 +0000 (01:55 +0000)
gas/ChangeLog
gas/expr.c

index 6f6b7e42e9276fadd76fcb39091d8067cb56648c..d0a6967c0b7192735396efc1ed42b116315f5361 100644 (file)
@@ -1,3 +1,7 @@
+2004-04-16  Alan Modra  <amodra@bigpond.net.au>
+
+       * expr.c (operand): Correct checks for ++ and --.
+
 2004-04-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/tc-generic.c: Add some comments.
index b7cc1b8cacb8a7de564fb0980fd51d6554d94df6..19e3f1c0387b29ee03fc3984922dd52c726422c3 100644 (file)
@@ -1022,7 +1022,7 @@ operand (expressionS *expressionP)
 
     case '+':
       /* Do not accept ++e as +(+e) */
-      if (input_line_pointer[1] == '+')
+      if (*input_line_pointer == '+')
        goto target_op;
       (void) operand (expressionP);
       break;
@@ -1042,7 +1042,7 @@ operand (expressionS *expressionP)
     case '-':
       {
         /* Do not accept --e as -(-e) */
-       if (c == '-' && input_line_pointer[1] == '-')
+       if (c == '-' && *input_line_pointer == '-')
          goto target_op;
        
        operand (expressionP);