zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a69695a28c418924a13e2b8bd370fa3b86fef596 (tree)
parent a05716bd20ea5b90baa2819a0aaa5bfc7583e100
Author: kristopher tate <kris.tate+github@gmail.com>
Date:   Wed, 21 Nov 2018 00:38:25 +0900

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

Diffstat:
Mstd/mem.zig | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/std/mem.zig b/std/mem.zig @@ -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; }