diff options
author | Tom Tromey <tromey@adacore.com> | 2023-08-29 09:14:01 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-08-29 13:36:55 -0600 |
commit | b47331bf901065e051d6490105a61e677cafc451 (patch) | |
tree | c6fd7f523e1f1aecb574085d6e7965358aa6fb60 /gdb/rust-lang.c | |
parent | 8b2ac9b21649a9c7f9edecfd817e9d10f20158c0 (diff) | |
download | gdb-b47331bf901065e051d6490105a61e677cafc451.zip gdb-b47331bf901065e051d6490105a61e677cafc451.tar.gz gdb-b47331bf901065e051d6490105a61e677cafc451.tar.bz2 |
Remove "highbound" parameter from value_array
value_array requires the passed-in bounds to match the length of the
array_view it is given. This patch removes the redundant "highbound"
parameter.
Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index f6e7d25..0e2ca09 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -1344,7 +1344,7 @@ eval_op_rust_array (struct type *expect_type, struct expression *exp, for (i = 0; i < copies; ++i) eltvec[i] = elt; - return value_array (0, copies - 1, eltvec); + return value_array (0, eltvec); } else { |