Fix bit set size with 128-bit integers

This commit is contained in:
gingerBill
2019-05-28 20:57:02 +01:00
parent c40acd008e
commit b894e2b378
2 changed files with 18 additions and 14 deletions
+2 -1
View File
@@ -948,7 +948,8 @@ void check_bit_set_type(CheckerContext *c, Type *type, Type *named_type, Ast *no
ast_node(bs, BitSetType, node);
GB_ASSERT(type->kind == Type_BitSet);
i64 const MAX_BITS = 64;
i64 const DEFAULT_BITS = cast(i64)(8*build_context.word_size);
i64 const MAX_BITS = 128;
Ast *base = unparen_expr(bs->elem);
if (is_ast_range(base)) {