diff options
| author | gingerBill <bill@gingerbill.org> | 2018-08-14 18:43:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-08-14 18:43:47 +0100 |
| commit | c7d6467cfa4d750660a10ad127717cf44c309c5c (patch) | |
| tree | 4365f6fa043036c71aef909a17bb28a7d4083680 | |
| parent | 79a3c0b36cdea0f2b5307f37b131926e2283cddf (diff) | |
Fix assigning issue for bit sets
| -rw-r--r-- | src/check_expr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 3c3c94b0f..38a14a8b3 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -503,9 +503,9 @@ i64 check_distance_between_types(CheckerContext *c, Operand *operand, Type *type } } - if (is_type_bit_set(dst) && are_types_identical(dst->BitSet.base_type, operand->type)) { - return 3; - } + // if (is_type_bit_set(dst) && are_types_identical(dst->BitSet.base_type, operand->type)) { + // return 3; + // } #if 0 if (are_types_identical(dst, src) && (!is_type_named(dst) || !is_type_named(src))) { |