aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Target.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/Target.zig')
-rw-r--r--lib/std/Target.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
index 5773faa5f2..027872de54 100644
--- a/lib/std/Target.zig
+++ b/lib/std/Target.zig
@@ -1187,7 +1187,7 @@ pub const Cpu = struct {
pub const Index = std.math.Log2Int(std.meta.Int(.unsigned, usize_count * @bitSizeOf(usize)));
pub const ShiftInt = std.math.Log2Int(usize);
- pub const empty = Set{ .ints = [1]usize{0} ** usize_count };
+ pub const empty: Set = .{ .ints = @splat(0) };
pub fn isEmpty(set: Set) bool {
return for (set.ints) |x| {