diff options
| -rw-r--r-- | .github/workflows/main.yml | 5 | ||||
| -rw-r--r-- | clap/args.zig | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f6e216..8685d1b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml | |||
| @@ -7,7 +7,10 @@ on: | |||
| 7 | 7 | ||
| 8 | jobs: | 8 | jobs: |
| 9 | test: | 9 | test: |
| 10 | runs-on: ubuntu-latest | 10 | strategy: |
| 11 | matrix: | ||
| 12 | os: [ubuntu-latest, windows-latest] | ||
| 13 | runs-on: ${{matrix.os}} | ||
| 11 | steps: | 14 | steps: |
| 12 | - uses: actions/checkout@v2.4.0 | 15 | - uses: actions/checkout@v2.4.0 |
| 13 | with: | 16 | with: |
diff --git a/clap/args.zig b/clap/args.zig index 16299c8..90c50fa 100644 --- a/clap/args.zig +++ b/clap/args.zig | |||
| @@ -73,7 +73,7 @@ pub const OsIterator = struct { | |||
| 73 | 73 | ||
| 74 | pub fn next(iter: *OsIterator) Error!?[:0]const u8 { | 74 | pub fn next(iter: *OsIterator) Error!?[:0]const u8 { |
| 75 | if (builtin.os.tag == .windows) { | 75 | if (builtin.os.tag == .windows) { |
| 76 | return try iter.args.next(iter.arena.allocator()) orelse return null; | 76 | return (try iter.args.next(iter.arena.allocator())) orelse return null; |
| 77 | } else { | 77 | } else { |
| 78 | return iter.args.nextPosix(); | 78 | return iter.args.nextPosix(); |
| 79 | } | 79 | } |