aboutsummaryrefslogtreecommitdiff
path: root/std/cstr.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-06-18 17:43:01 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-06-18 17:43:01 -0400
commita430853a48a5e4dbcd0094c632957e28898159f3 (patch)
treed1bc116c6608645b376eb486ee8bf81bd09bfb38 /std/cstr.zig
parent1aafbae5be518309b4c2194cdc24e22642514519 (diff)
downloadzig-a430853a48a5e4dbcd0094c632957e28898159f3.tar.gz
zig-a430853a48a5e4dbcd0094c632957e28898159f3.zip
standard library fixes
Diffstat (limited to 'std/cstr.zig')
-rw-r--r--std/cstr.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/cstr.zig b/std/cstr.zig
index d9106769c1..e83d5a39e9 100644
--- a/std/cstr.zig
+++ b/std/cstr.zig
@@ -79,7 +79,7 @@ pub const NullTerminated2DArray = struct {
errdefer allocator.free(buf);
var write_index = index_size;
- const index_buf = ([]?[*]u8)(buf);
+ const index_buf = @bytesToSlice(?[*]u8, buf);
var i: usize = 0;
for (slices) |slice| {