aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/valops.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9db2f16..43ed859 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+Mon Mar 6 15:03:59 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
+
+ * valops.c (value_cast): Don't use backslash newline--pre-ANSI
+ compilers (such as SunOS4 /bin/cc) don't generally support it
+ except in some contexts.
+
Fri Mar 3 17:42:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
* valops.c (value_cast): Check for cast to array type *before*
diff --git a/gdb/valops.c b/gdb/valops.c
index a476ddc..ad3d8f9 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -151,9 +151,9 @@ value_cast (type, arg2)
if (current_language->c_style_arrays
&& (VALUE_REPEATED (arg2)
|| TYPE_CODE (VALUE_TYPE (arg2)) == TYPE_CODE_ARRAY))
- arg2 = value_coerce_array (arg2); \
+ arg2 = value_coerce_array (arg2);
- if (TYPE_CODE (VALUE_TYPE (arg2)) == TYPE_CODE_FUNC) \
+ if (TYPE_CODE (VALUE_TYPE (arg2)) == TYPE_CODE_FUNC)
arg2 = value_coerce_function (arg2);
COERCE_VARYING_ARRAY (arg2);