From e98354635a2e6af5202c2e04058ee1dc46c12826 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sun, 1 Jun 2008 22:44:06 +0000 Subject: [PATCH] more fixes for bitfield type [r19912] --- type.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/type.c b/type.c index ba2938d..cc32ec4 100644 --- a/type.c +++ b/type.c @@ -748,6 +748,8 @@ bool is_type_integer(const type_t *type) if(type->kind == TYPE_ENUM) return true; + if(type->kind == TYPE_BITFIELD) + return true; if(type->kind != TYPE_ATOMIC) return false; @@ -784,6 +786,8 @@ bool is_type_signed(const type_t *type) /* enum types are int for now */ if(type->kind == TYPE_ENUM) return true; + if(type->kind == TYPE_BITFIELD) + return is_type_signed(type->bitfield.base_type); if(type->kind != TYPE_ATOMIC) return false; -- 2.20.1