While our semantics of _Bool are wrong, at least make it the right size (for most...
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 24 Oct 2008 17:30:32 +0000 (17:30 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 24 Oct 2008 17:30:32 +0000 (17:30 +0000)
[r23175]

type.c

diff --git a/type.c b/type.c
index 56e0af5..5b7006f 100644 (file)
--- a/type.c
+++ b/type.c
@@ -173,7 +173,9 @@ void init_types(void)
        props[ATOMIC_TYPE_LONGLONG].alignment    = 4;
        props[ATOMIC_TYPE_ULONGLONG].alignment   = 4;
 
-       props[ATOMIC_TYPE_BOOL] = props[ATOMIC_TYPE_UINT];
+       /* TODO: make this configurable for platforms which do not use byte sized
+        * bools. */
+       props[ATOMIC_TYPE_BOOL] = props[ATOMIC_TYPE_UCHAR];
 }
 
 void exit_types(void)