diff options
author | Alan Modra <amodra@gmail.com> | 2004-04-16 01:55:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-04-16 01:55:27 +0000 |
commit | f4c724fc32c913252cfda9ce052ad84afe3258b6 (patch) | |
tree | 4a624305caf68721d7948427b03e1f47d478904d /gas/expr.c | |
parent | c2215ad2888c9fe23d0667c3e18163bcbf85cdf3 (diff) | |
download | gdb-f4c724fc32c913252cfda9ce052ad84afe3258b6.zip gdb-f4c724fc32c913252cfda9ce052ad84afe3258b6.tar.gz gdb-f4c724fc32c913252cfda9ce052ad84afe3258b6.tar.bz2 |
* expr.c (operand): Correct checks for ++ and --.
Diffstat (limited to 'gas/expr.c')
-rw-r--r-- | gas/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |