aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-01-11 16:30:39 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-01-11 16:30:39 +0200
commit45b3531e29c1b596f1be123de94b7c618c92bf8a (patch)
tree6fe6c326df6d8c8875a3ece1db17e9766030d579 /src/ast.c
parent47f1d503ec663f967302b3071177c40c431b3fdb (diff)
downloadek-45b3531e29c1b596f1be123de94b7c618c92bf8a.tar.gz
ek-45b3531e29c1b596f1be123de94b7c618c92bf8a.zip
multiple import stuff
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)