Fix failed compile on windows
This commit is contained in:
parent
97ace8a3eb
commit
d4f4576e3d
2
clap.zig
2
clap.zig
|
@ -198,7 +198,7 @@ pub const OsArgIterator = struct {
|
|||
fn nextFn(iter: *ArgIterator(Error)) Error!?[]const u8 {
|
||||
const self = @fieldParentPtr(OsArgIterator, "iter", iter);
|
||||
if (builtin.os == builtin.Os.windows) {
|
||||
return try self.args.next(self.allocator) orelse return null;
|
||||
return try self.args.next(self.arena.allocator) orelse return null;
|
||||
} else {
|
||||
return self.args.nextPosix();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user