aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-02-22 18:15:13 +0000
committergingerBill <bill@gingerbill.org>2024-02-22 18:15:13 +0000
commit5f001f6d5138d61fbb4900c951e2ccb12894d5ed (patch)
tree829a51ce3f0cdf40ecab46c885b7a48f8ae71602 /src/check_decl.cpp
parentfc07211772e37865c928a12ab01663baa940cf28 (diff)
Allow casting between a `bit_field` and its backing type
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index 3ccf1b97a..2c0f7a7b8 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -210,6 +210,7 @@ gb_internal bool is_type_distinct(Ast *node) {
case Ast_UnionType:
case Ast_EnumType:
case Ast_ProcType:
+ case Ast_BitFieldType:
return true;
case Ast_PointerType: