+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.
case '+':
/* Do not accept ++e as +(+e) */
- if (input_line_pointer[1] == '+')
+ if (*input_line_pointer == '+')
goto target_op;
(void) operand (expressionP);
break;
case '-':
{
/* Do not accept --e as -(-e) */
- if (c == '-' && input_line_pointer[1] == '-')
+ if (c == '-' && *input_line_pointer == '-')
goto target_op;
operand (expressionP);