diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-12-01 19:22:03 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-01 19:22:03 -0500 |
| commit | 4af5c3867487b10bdfdb35fba79442f5cc860da1 (patch) | |
| tree | f81556784944dab181760082d8ac4f8ed33cc990 /lib/std | |
| parent | 080316cd4f9a20fb4cf493ee071f672416b5864c (diff) | |
| download | zig-4af5c3867487b10bdfdb35fba79442f5cc860da1.tar.gz zig-4af5c3867487b10bdfdb35fba79442f5cc860da1.zip | |
fixes for self-hosted compiler
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/event/fs.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/event/fs.zig b/lib/std/event/fs.zig index 346d0f294a..5986f07ad3 100644 --- a/lib/std/event/fs.zig +++ b/lib/std/event/fs.zig @@ -695,7 +695,7 @@ pub fn readFile(allocator: *Allocator, file_path: []const u8, max_size: usize) ! try list.ensureCapacity(list.len + mem.page_size); const buf = list.items[list.len..]; const buf_array = [_][]u8{buf}; - const amt = try preadv(allocator, fd, buf_array, list.len); + const amt = try preadv(allocator, fd, &buf_array, list.len); list.len += amt; if (list.len > max_size) { return error.FileTooBig; |
