From b894e2b3788307546e330bd43304e5ff785dac51 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 28 May 2019 20:57:02 +0100 Subject: Fix bit set size with 128-bit integers --- src/check_type.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index 1ab975b07..ca0fab260 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -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)) { -- cgit v1.2.3