diff options
| author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-20 19:28:00 +0000 |
|---|---|---|
| committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-20 19:28:00 +0000 |
| commit | b89fc90091807c69f1d61d039471be5a477d076a (patch) | |
| tree | e7e56da6851ce2ff8baa0a6f5607bc868e7263d1 /gcc/c-typeck.c | |
| parent | cc119c14d338b81938a45ff0afc2a177133c83b8 (diff) | |
| download | ppe42-gcc-b89fc90091807c69f1d61d039471be5a477d076a.tar.gz ppe42-gcc-b89fc90091807c69f1d61d039471be5a477d076a.zip | |
* c-typeck.c (digest_init): Handle boolean types as scalars.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39157 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-typeck.c')
| -rw-r--r-- | gcc/c-typeck.c | 2 |
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 |

