aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-d10v.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-d10v.c')
-rw-r--r--gas/config/tc-d10v.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c
index 0dbf98a..31d7fca 100644
--- a/gas/config/tc-d10v.c
+++ b/gas/config/tc-d10v.c
@@ -459,8 +459,10 @@ get_operands (exp)
exp[numops].X_add_number = OPERAND_ATSIGN;
if (*p == '+')
{
- exp[++numops].X_add_number = OPERAND_PLUS;
- ++p;
+ numops++;
+ exp[numops].X_op = O_absent;
+ exp[numops].X_add_number = OPERAND_PLUS;
+ p++;
}
post = postfix (p);
}