From: Jim Kingdon Date: Mon, 6 Mar 1995 23:12:02 +0000 (+0000) Subject: * valops.c (value_cast): Don't use backslash newline--pre-ANSI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e70bba9f276b2af03f5cc3d80ad20fd982d4eb1a;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9db2f166558..43ed8593b46 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 * valops.c (value_cast): Check for cast to array type *before* diff --git a/gdb/valops.c b/gdb/valops.c index a476ddc2bb8..ad3d8f99dce 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);