diff options
| author | 2018-09-15 13:19:01 +0200 | |
|---|---|---|
| committer | 2018-09-15 13:19:01 +0200 | |
| commit | d4f4576e3dcdcc58e04e7b28d71b9e97073bc3f3 (patch) | |
| tree | 6350de478f63c63a60d16e66ae0035fa30e957b9 /clap.zig | |
| parent | Merge branch 'master' of github.com:Hejsil/zig-clap (diff) | |
| download | zig-clap-d4f4576e3dcdcc58e04e7b28d71b9e97073bc3f3.tar.gz zig-clap-d4f4576e3dcdcc58e04e7b28d71b9e97073bc3f3.tar.xz zig-clap-d4f4576e3dcdcc58e04e7b28d71b9e97073bc3f3.zip | |
Fix failed compile on windows
Diffstat (limited to 'clap.zig')
| -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.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 | } |