mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 02:40:41 -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
@@ -535,6 +535,11 @@ i64 check_distance_between_types(CheckerContext *c, Operand *operand, Type *type
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (is_type_bit_field_value(operand->type) && is_type_bit_field_value(type)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
{
|
||||
isize subtype_level = check_is_assignable_to_using_subtype(operand->type, type);
|
||||
|
||||
Reference in new issue
Block a user