aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/types.rst2
-rw-r--r--parse.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/types.rst b/Documentation/types.rst
index 974f9861..dd5bb210 100644
--- a/Documentation/types.rst
+++ b/Documentation/types.rst
@@ -125,7 +125,7 @@ SYM_RESTRICT
Used for bitwise types (aka 'restricted' types):
* .ctype.base_type points to the underlying type (integer)
* .ctype.modifiers & .as are like for SYM_NODE and the modifiers
- are inherited from the base type with MOD_SPECIFIER removed
+ are inherited from the base type
* .ident is the typedef name (if any).
SYM_FOULED
diff --git a/parse.c b/parse.c
index 3d6fef7c..14fe9e15 100644
--- a/parse.c
+++ b/parse.c
@@ -1586,7 +1586,6 @@ static struct token *declaration_specifiers(struct token *token, struct decl_sta
}
type = alloc_symbol(token->pos, SYM_BASETYPE);
*type = *ctx->ctype.base_type;
- type->ctype.modifiers &= ~MOD_SPECIFIER;
type->ctype.base_type = ctx->ctype.base_type;
type->type = SYM_RESTRICT;
ctx->ctype.base_type = type;