mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-14 09:52:23 -07:00
Fix bit set size with 128-bit integers
This commit is contained in:
+2
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user