Commit a69695a28c

kristopher tate <kris.tate+github@gmail.com>
2018-11-20 16:38:25
std/mem: writeIntLE: buf.* to buf;
1 parent a05716b
Changed files (1)
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;
     }