| author | |
| committer | |
| log | a69695a28c418924a13e2b8bd370fa3b86fef596 |
| tree | 5fddcd8d515e8a26041c682764e0b76823eccf0b |
| parent | a05716bd20ea5b90baa2819a0aaa5bfc7583e100 |
1 files changed, 1 insertions(+), 3 deletions(-)
std/mem.zig+1-3| ... | @@ -546,9 +546,7 @@ pub fn writeIntLE(comptime T: type, buf: *[@sizeOf(T)]u8, value: T) void { | ... | @@ -546,9 +546,7 @@ pub fn writeIntLE(comptime T: type, buf: *[@sizeOf(T)]u8, value: T) void { |
| 546 | buf[0] = bits; | 546 | buf[0] = bits; |
| 547 | return; | 547 | return; |
| 548 | } | 548 | } |
| 549 | // FIXME: this should just be for (buf). | 549 | for (buf) |*b| { |
| 550 | // See https://github.com/ziglang/zig/issues/1663 | ||
| 551 | for (buf.*) |*b| { | ||
| 552 | b.* = @truncate(u8, bits); | 550 | b.* = @truncate(u8, bits); |
| 553 | bits >>= 8; | 551 | bits >>= 8; |
| 554 | } | 552 | } |