aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-02-26 13:50:54 -0700
committerTom Tromey <tromey@adacore.com>2024-02-26 13:50:54 -0700
commit4c3b59d5ba864609049df054e117bf6417194d22 (patch)
tree3b6d824ba46c00db6b2afcd2aa923b2411a6e014 /gdb/eval.c
parent3d2d21728b6db4430ff168ee27e12fc6e2627fad (diff)
downloadgdb-4c3b59d5ba864609049df054e117bf6417194d22.zip
gdb-4c3b59d5ba864609049df054e117bf6417194d22.tar.gz
gdb-4c3b59d5ba864609049df054e117bf6417194d22.tar.bz2
Remove two unnecessary casts
I noticed a spot in ada-lang.c where the return value of value_as_address was cast to CORE_ADDR -- a no-op cast. I searched and found another. This patch fixes both.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 4c438f9..2759b46 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -1685,7 +1685,7 @@ eval_op_ind (struct type *expect_type, struct expression *exp,
BUILTIN_TYPE_LONGEST would seem to be a mistake. */
if (type->code () == TYPE_CODE_INT)
return value_at_lazy (builtin_type (exp->gdbarch)->builtin_int,
- (CORE_ADDR) value_as_address (arg1));
+ value_as_address (arg1));
return value_ind (arg1);
}