diff options
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index ffed1e6e2e8..e8917d06855 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -658,7 +658,8 @@ init_simd_type (char *name, memset (f, 0, sizeof (*f)); f->loc.bitpos = 0; f->type = create_array_type (0, elt_type, - create_range_type (0, builtin_type_int, 0, n)); + create_range_type (0, builtin_type_int, + 0, n-1)); f->name = elt_name; /* Build a struct type with that field. */ |