summaryrefslogtreecommitdiff
path: root/clap.zig
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2018-09-15 13:19:01 +0200
committerGravatar Jimmi Holst Christensen2018-09-15 13:19:01 +0200
commitd4f4576e3dcdcc58e04e7b28d71b9e97073bc3f3 (patch)
tree6350de478f63c63a60d16e66ae0035fa30e957b9 /clap.zig
parentMerge branch 'master' of github.com:Hejsil/zig-clap (diff)
downloadzig-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.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/clap.zig b/clap.zig
index 2715dcc..b529e16 100644
--- a/clap.zig
+++ b/clap.zig
@@ -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 }