aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parse.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-10-10 00:14:50 +0900
committernsfisis <nsfisis@gmail.com>2025-10-10 00:14:50 +0900
commitd31f9ba65586887ac662a86887a8ffe87774081b (patch)
treee4de770f9960a117feef631caec7d208c8a1796b /src/parse.c
parent46e79e69ae866df88cb9442a7329c72662ed2db3 (diff)
downloadducc-d31f9ba65586887ac662a86887a8ffe87774081b.tar.gz
ducc-d31f9ba65586887ac662a86887a8ffe87774081b.tar.zst
ducc-d31f9ba65586887ac662a86887a8ffe87774081b.zip
refactor: use |= operator to simplify codeHEADmain
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parse.c b/src/parse.c
index 1ad11bd..39bd8f2 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -1005,9 +1005,7 @@ static AstNode* parse_parameter_type_list(Parser* p) {
--params->node_len;
break;
}
- // TODO: |= is not supported
- // has_void |= params->node_items[i].ty->kind == TypeKind_void;
- has_void = has_void | (params->node_items[i].ty->kind == TypeKind_void);
+ has_void |= params->node_items[i].ty->kind == TypeKind_void;
}
if (params->node_len > 6) {