mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
bit_set: specify the backing integer for IntegerBitSet, allowing it to be used in extern structs
This commit is contained in:
committed by
Alex Rønne Petersen
parent
abd099e97f
commit
125c1f3dd9
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user