| ... | ... | @@ -170,7 +170,7 @@ pub fn Integer(comptime size: u16) type { |
| 170 | 170 | |
| 171 | 171 | /// Set all bits to 1. |
| 172 | 172 | pub fn setAll(self: *Self) void { |
| 173 | | self.mask = ~self.mask; |
| 173 | self.mask = ~@as(MaskInt, 0); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /// Performs a union of two bit sets, and stores the |
| ... | ... | @@ -1671,6 +1671,7 @@ fn testBitSet(a: anytype, b: anytype, len: usize) !void { |
| 1671 | 1671 | a.unsetAll(); |
| 1672 | 1672 | try testing.expectEqual(0, a.count()); |
| 1673 | 1673 | |
| 1674 | fillEven(a, len); |
| 1674 | 1675 | a.setAll(); |
| 1675 | 1676 | try testing.expectEqual(len, a.count()); |
| 1676 | 1677 | } |