Correct integer conversion rank of _Bool.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 15 Aug 2011 17:21:10 +0000 (19:21 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 16 Aug 2011 06:46:00 +0000 (08:46 +0200)
It should be the lowest of all integer types, not the heighest.
This corrects C/bool3.c.

type.h

diff --git a/type.h b/type.h
index d3414b6..23b264f 100644 (file)
--- a/type.h
+++ b/type.h
@@ -34,6 +34,7 @@ typedef unsigned char il_alignment_t;
 typedef enum atomic_type_kind_t {
        ATOMIC_TYPE_INVALID = 0,
        ATOMIC_TYPE_VOID,
+       ATOMIC_TYPE_BOOL,
        ATOMIC_TYPE_WCHAR_T,
        ATOMIC_TYPE_CHAR,
        ATOMIC_TYPE_SCHAR,
@@ -49,9 +50,8 @@ typedef enum atomic_type_kind_t {
        ATOMIC_TYPE_FLOAT,
        ATOMIC_TYPE_DOUBLE,
        ATOMIC_TYPE_LONG_DOUBLE,
-       ATOMIC_TYPE_BOOL,
 
-       ATOMIC_TYPE_LAST = ATOMIC_TYPE_BOOL
+       ATOMIC_TYPE_LAST = ATOMIC_TYPE_LONG_DOUBLE
 } atomic_type_kind_t;
 
 typedef enum atomic_type_flag_t {