Fix failed compile on windows

This commit is contained in:
Jimmi Holst Christensen 2018-09-15 13:19:01 +02:00
parent 97ace8a3eb
commit d4f4576e3d

View File

@ -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();
}