zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 125c1f3dd9c7221e52ad5c54a2ce4bdb870d3391 (tree)
parent abd099e97ff45395ec6780a88910da4d915f82c9
Author: kcbanner <kcbanner@gmail.com>
Date:   Sat, 14 Mar 2026 16:43:37 -0400

bit_set: specify the backing integer for IntegerBitSet, allowing it to be used in extern structs

Diffstat:
Mlib/std/bit_set.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/bit_set.zig b/lib/std/bit_set.zig @@ -52,7 +52,7 @@ pub fn StaticBitSet(comptime size: usize) type { /// This set is good for sets with a small size, but may generate /// inefficient code for larger sets, especially in debug mode. pub fn IntegerBitSet(comptime size: u16) type { - return packed struct { + return packed struct(MaskInt) { const Self = @This(); // TODO: Make this a comptime field once those are fixed