std/mem: writeIntLE: buf.* to buf;

This commit is contained in:
kristopher tate 2018-11-21 00:38:25 +09:00 committed by Andrew Kelley
parent a05716bd20
commit a69695a28c

View File

@ -546,9 +546,7 @@ pub fn writeIntLE(comptime T: type, buf: *[@sizeOf(T)]u8, value: T) void {
buf[0] = bits;
return;
}
// FIXME: this should just be for (buf).
// See https://github.com/ziglang/zig/issues/1663
for (buf.*) |*b| {
for (buf) |*b| {
b.* = @truncate(u8, bits);
bits >>= 8;
}