aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/expr.c b/gas/expr.c
index b7cc1b8..19e3f1c 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -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);