aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast.c b/src/ast.c
index 0571c12..5cfafdd 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -150,7 +150,7 @@ void ast_clear_flags(struct ast *node, enum ast_flags flags)
unsigned ast_flags(struct ast *node, enum ast_flags flags)
{
- return node->f & flags;
+ return (node->f & flags) == flags;
}
void ast_append(struct ast **list, struct ast *elem)