This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] ada-lang.c::ada_value_cast: remove unnecessary parentheses
- From: Joel Brobecker <brobecke at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 8 Sep 2018 21:57:10 -0000
- Subject: [binutils-gdb] ada-lang.c::ada_value_cast: remove unnecessary parentheses
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=95f39a5b2755e5aaaceb6248e585f8a593542331
commit 95f39a5b2755e5aaaceb6248e585f8a593542331
Author: Joel Brobecker <brobecker@adacore.com>
Date: Sat Sep 8 16:50:00 2018 -0500
ada-lang.c::ada_value_cast: remove unnecessary parentheses
No other code change.
gdb/ChangeLog:
* ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
Diff:
---
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);