This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 7/8] ada-lang.c::ada_value_cast: remove unnecessary parentheses
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 8 Sep 2018 17:55:59 -0400
- Subject: [PATCH 7/8] ada-lang.c::ada_value_cast: remove unnecessary parentheses
- References: <1536443760-78016-1-git-send-email-brobecker@adacore.com>
No other code change.
gdb/ChangeLog:
* ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
---
gdb/ChangeLog | 4 ++++
gdb/ada-lang.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0f73a3e..c3527dc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2018-09-08 Joel Brobecker <brobecker@adacore.com>
+ * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
+
+2018-09-08 Joel Brobecker <brobecker@adacore.com>
+
* ada-typeprint.c (print_range): Print the bounds using TYPE
rather than its TYPE_TARGET_TYPE.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index b370b3c..0a73ca4 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -10233,7 +10233,7 @@ ada_value_cast (struct type *type, struct value *arg2)
return arg2;
if (ada_is_fixed_point_type (type))
- return (cast_to_fixed (type, arg2));
+ return cast_to_fixed (type, arg2);
if (ada_is_fixed_point_type (value_type (arg2)))
return cast_from_fixed (type, arg2);
--
2.1.4