diff options
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r-- | gdb/valarith.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c index 4fd0e74..ea93ea1 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -277,7 +277,7 @@ value_subscripted_rvalue (struct value *array, struct value *idx, int lowerbound else VALUE_LVAL (v) = VALUE_LVAL (array); VALUE_ADDRESS (v) = VALUE_ADDRESS (array); - VALUE_REGNO (v) = VALUE_REGNO (array); + VALUE_REGNUM (v) = VALUE_REGNUM (array); v->offset = value_offset (array) + elt_offs; return v; } |