summaryrefslogtreecommitdiff
path: root/gcc/c-typeck.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-01-20 19:28:00 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2001-01-20 19:28:00 +0000
commit47f8b473287bbb456737dae6d61fe1002da475d2 (patch)
treee7e56da6851ce2ff8baa0a6f5607bc868e7263d1 /gcc/c-typeck.c
parent2954d7dbf7d309d5b5c8fc2a32dae155936ee264 (diff)
downloadgcc-47f8b473287bbb456737dae6d61fe1002da475d2.tar.gz
* c-typeck.c (digest_init): Handle boolean types as scalars.
From-SVN: r39157
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r--gcc/c-typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 9db269e9600..97c43070b11 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -4781,7 +4781,7 @@ digest_init (type, init, require_constant, constructor_constant)
/* Handle scalar types, including conversions. */
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
for arrays and functions. We must not call it in the