aboutsummaryrefslogtreecommitdiff
path: root/std/io.zig
diff options
context:
space:
mode:
authoremekoi <emekankurumeh@outlook.com>2019-03-31 14:21:35 -0500
committeremekoi <emekankurumeh@outlook.com>2019-03-31 16:47:34 -0500
commitb7aa289ae45eb281968a48f21d3ecaf1fb86d830 (patch)
tree37ce17e44e11cce2c86d1407e7ade5388bc95697 /std/io.zig
parent4a64f266272c2bce832d971b8082455becf5e478 (diff)
downloadzig-b7aa289ae45eb281968a48f21d3ecaf1fb86d830.tar.gz
zig-b7aa289ae45eb281968a48f21d3ecaf1fb86d830.zip
fixed broken casts in std
Diffstat (limited to 'std/io.zig')
-rw-r--r--std/io.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/io.zig b/std/io.zig
index 7756f36116..b5071be385 100644
--- a/std/io.zig
+++ b/std/io.zig
@@ -227,12 +227,12 @@ pub fn OutStream(comptime WriteError: type) type {
}
pub fn writeByte(self: *Self, byte: u8) Error!void {
- const slice = (*[1]u8)(&byte)[0..];
+ const slice = (*const [1]u8)(&byte)[0..];
return self.writeFn(self, slice);
}
pub fn writeByteNTimes(self: *Self, byte: u8, n: usize) Error!void {
- const slice = (*[1]u8)(&byte)[0..];
+ const slice = (*const [1]u8)(&byte)[0..];
var i: usize = 0;
while (i < n) : (i += 1) {
try self.writeFn(self, slice);