* 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.
This commit is contained in:
Jim Kingdon 1995-03-06 23:12:02 +00:00
parent 3654c0672f
commit e70bba9f27
2 changed files with 8 additions and 2 deletions

View File

@ -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*

View File

@ -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);