mirror of
https://github.com/ziglang/zig.git
synced 2026-01-28 02:05:31 +00:00
std/mem: writeIntLE: buf.* to buf;
This commit is contained in:
parent
a05716bd20
commit
a69695a28c
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user