authorgravatar for kris.tate+github@gmail.comkristopher tate <kris.tate+github@gmail.com> 2018-11-21 00:38:25+09:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-11-20 11:11:07-05:00
loga69695a28c418924a13e2b8bd370fa3b86fef596
tree5fddcd8d515e8a26041c682764e0b76823eccf0b
parenta05716bd20ea5b90baa2819a0aaa5bfc7583e100

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


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 }