diff options
| author | Wink Saville <wink@saville.com> | 2018-09-14 08:30:04 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-09-14 12:07:21 -0400 |
| commit | 82af31ce368d16cc5cadac80faa3d8a4d4b1f752 (patch) | |
| tree | e1a727a62576fdc0d5793db4754fc91ee75d6623 /std | |
| parent | 5e39328542094043bc7b34787ced45dbffe3abee (diff) | |
| download | zig-82af31ce368d16cc5cadac80faa3d8a4d4b1f752.tar.gz zig-82af31ce368d16cc5cadac80faa3d8a4d4b1f752.zip | |
Fix additional regressions calling FileOutStream/FileInStream init()
This is caused by change 686663239af6afd8dea814a9fe6a8885f06d6cb3 and not
fixed in 832caefc2a1b20deb513d43306d6723670ba9c8f.
Diffstat (limited to 'std')
| -rw-r--r-- | std/atomic/queue.zig | 2 | ||||
| -rw-r--r-- | std/zig/bench.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/std/atomic/queue.zig b/std/atomic/queue.zig index c1e2a4c98b..eea77d5534 100644 --- a/std/atomic/queue.zig +++ b/std/atomic/queue.zig @@ -114,7 +114,7 @@ pub fn Queue(comptime T: type) type { fn dumpRecursive(optional_node: ?*Node, indent: usize) void { var stderr_file = std.io.getStdErr() catch return; - const stderr = &std.io.FileOutStream.init(&stderr_file).stream; + const stderr = &std.io.FileOutStream.init(stderr_file).stream; stderr.writeByteNTimes(' ', indent) catch return; if (optional_node) |node| { std.debug.warn("0x{x}={}\n", @ptrToInt(node), node.data); diff --git a/std/zig/bench.zig b/std/zig/bench.zig index 630f6b2233..2db33e5917 100644 --- a/std/zig/bench.zig +++ b/std/zig/bench.zig @@ -24,7 +24,7 @@ pub fn main() !void { const mb_per_sec = bytes_per_sec / (1024 * 1024); var stdout_file = try std.io.getStdOut(); - const stdout = &std.io.FileOutStream.init(&stdout_file).stream; + const stdout = &std.io.FileOutStream.init(stdout_file).stream; try stdout.print("{.3} MiB/s, {} KiB used \n", mb_per_sec, memory_used / 1024); } |
