aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/parse.c b/parse.c
index 04558a5..e990f33 100644
--- a/parse.c
+++ b/parse.c
@@ -1262,18 +1262,9 @@ static struct symbol * const * const types[] = {
real_types + 1, char_types, char_types + 1, char_types + 2
};
-struct symbol *ctype_integer(unsigned long spec)
+struct symbol *ctype_integer(int size, int want_unsigned)
{
- int size;
-
- if (spec & MOD_LONGLONG)
- size = 2;
- else if (spec & MOD_LONG)
- size = 1;
- else
- size = 0;
-
- return types[spec & MOD_UNSIGNED ? CUInt : CInt][size];
+ return types[want_unsigned ? CUInt : CInt][size];
}
static struct token *handle_qualifiers(struct token *t, struct decl_state *ctx)