| author | |
| committer | |
| log | 03e2c53747a7eeb0d162f7b7fa7763fffdeba2d8 |
| tree | a4282b2d44fd27ba1a3f4059ee17ba28bfda60b6 |
| parent | 31ba9d569b14a3e147d9bdfe88d63a1ed134bc5f |
| signature |
1 files changed, 2 insertions(+), 1 deletions(-)
lib/std/packed_int_array.zig+2-1| ... | ... | @@ -205,7 +205,8 @@ pub fn PackedIntArrayEndian(comptime Int: type, comptime endian: builtin.Endian, |
| 205 | 205 | |
| 206 | 206 | ///Initialize all entries of a packed array to the same value |
| 207 | 207 | pub fn initAllTo(int: Int) Self { |
| 208 | var self = @as(Self, undefined); | |
| 208 | // TODO: use `var self = @as(Self, undefined);` https://github.com/ziglang/zig/issues/7635 | |
| 209 | var self = Self{ .bytes = [_]u8{0} ** total_bytes }; | |
| 209 | 210 | self.setAll(int); |
| 210 | 211 | return self; |
| 211 | 212 | } |