Commit 47f8b473 by Joseph Myers Committed by Joseph Myers

* c-typeck.c (digest_init): Handle boolean types as scalars.

From-SVN: r39157
parent 2954d7db
2001-01-20 Joseph S. Myers <jsm28@cam.ac.uk>
* c-typeck.c (digest_init): Handle boolean types as scalars.
Sat Jan 20 12:46:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Sat Jan 20 12:46:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stmt.c (expand_return): Don't return anything if size is zero. * stmt.c (expand_return): Don't return anything if size is zero.
......
...@@ -4781,7 +4781,7 @@ digest_init (type, init, require_constant, constructor_constant) ...@@ -4781,7 +4781,7 @@ digest_init (type, init, require_constant, constructor_constant)
/* Handle scalar types, including conversions. */ /* Handle scalar types, including conversions. */
if (code == INTEGER_TYPE || code == REAL_TYPE || code == POINTER_TYPE if (code == INTEGER_TYPE || code == REAL_TYPE || code == POINTER_TYPE
|| code == ENUMERAL_TYPE || code == COMPLEX_TYPE) || code == ENUMERAL_TYPE || code == BOOLEAN_TYPE || code == COMPLEX_TYPE)
{ {
/* Note that convert_for_assignment calls default_conversion /* Note that convert_for_assignment calls default_conversion
for arrays and functions. We must not call it in the for arrays and functions. We must not call it in the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment