(convert_for_assignment): Don't use convert_and_check

when handling arithmetic types here.

From-SVN: r4358
This commit is contained in:
Richard Stallman 1993-05-06 16:02:40 +00:00
parent 266dd51787
commit 619fdc9c7a

View File

@ -4148,7 +4148,11 @@ convert_for_assignment (type, rhs, errtype, fundecl, funname, parmnum)
&&
(coder == INTEGER_TYPE || coder == REAL_TYPE || coder == ENUMERAL_TYPE
|| codel == COMPLEX_TYPE))
return convert_and_check (type, rhs);
/* Don't use convert_and_check here. If the input has type int
and did not overflow, and we are converting it here to a short,
we don't want an error. A warning would be okay, but it's too risky now
to add an option to convert_and_check to get just warnings. */
return convert (type, rhs);
/* Conversion to a union from its member types. */
else if (codel == UNION_TYPE)
{