diff options
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 467e4df..55b05f1 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -8717,7 +8717,7 @@ aggregate_assign_others (struct value *container, LONGEST low, LONGEST high) { int i; - int expr_pc = *pos+1; + int expr_pc = *pos + 1; for (i = 0; i < num_indices - 2; i += 2) { @@ -8725,10 +8725,10 @@ aggregate_assign_others (struct value *container, for (ind = indices[i + 1] + 1; ind < indices[i + 2]; ind += 1) { - int pos; + int localpos; - pos = expr_pc; - assign_component (container, lhs, ind, exp, &pos); + localpos = expr_pc; + assign_component (container, lhs, ind, exp, &localpos); } } ada_evaluate_subexp (NULL, exp, pos, EVAL_SKIP); |