diff options
| author | 2018-09-15 13:19:41 +0200 | |
|---|---|---|
| committer | 2018-09-15 13:19:41 +0200 | |
| commit | 83228bb64e4ca48ab71c26abdda9781650d86fab (patch) | |
| tree | 42752605787c86cabf2ca341210acd2e88fbd99c | |
| parent | Fix failed compile on windows (diff) | |
| download | zig-clap-83228bb64e4ca48ab71c26abdda9781650d86fab.tar.gz zig-clap-83228bb64e4ca48ab71c26abdda9781650d86fab.tar.xz zig-clap-83228bb64e4ca48ab71c26abdda9781650d86fab.zip | |
Fix failed compile on windows
| -rw-r--r-- | clap.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -198,7 +198,7 @@ pub const OsArgIterator = struct { | |||
| 198 | fn nextFn(iter: *ArgIterator(Error)) Error!?[]const u8 { | 198 | fn nextFn(iter: *ArgIterator(Error)) Error!?[]const u8 { |
| 199 | const self = @fieldParentPtr(OsArgIterator, "iter", iter); | 199 | const self = @fieldParentPtr(OsArgIterator, "iter", iter); |
| 200 | if (builtin.os == builtin.Os.windows) { | 200 | if (builtin.os == builtin.Os.windows) { |
| 201 | return try self.args.next(self.arena.allocator) orelse return null; | 201 | return try self.args.next(&self.arena.allocator) orelse return null; |
| 202 | } else { | 202 | } else { |
| 203 | return self.args.nextPosix(); | 203 | return self.args.nextPosix(); |
| 204 | } | 204 | } |