mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-21 03:44:27 -04:00
Allow comparisons with bit field values
This commit is contained in:
1 parent
71a733e3b5
commit
16f3bc2c0b
3 files changed
+58
-15
No files matched your search
@@ -1490,6 +1490,9 @@ bool is_type_comparable(Type *t) {
|
||||
case Type_BitSet:
|
||||
return true;
|
||||
|
||||
case Type_BitFieldValue:
|
||||
return true;
|
||||
|
||||
case Type_Opaque:
|
||||
return is_type_comparable(t->Opaque.elem);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user