diff options
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index 1cd34cd..8a9cebd 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -1114,7 +1114,7 @@ decode_subscr_data (scan, end) TYPE_OBJFILE (typep) = current_objfile; TYPE_CODE (typep) = TYPE_CODE_ARRAY; TYPE_LENGTH (typep) = TYPE_LENGTH (nexttype); - TYPE_LENGTH (typep) *= lowbound + highbound + 1; + TYPE_LENGTH (typep) *= (highbound - lowbound) + 1; TYPE_TARGET_TYPE (typep) = nexttype; } } |