Skip to content

Commit

Permalink
Fix support for 32 bit platforms
Browse files Browse the repository at this point in the history
Previously running ReTest.jl on 32 bit machines would fail because the `id`
variable would have type Int32 (because it's initialized with a literal) but the
function it was getting passed to (`resolve!()`) expected a Int64.

Also added a 32 bit test to the CI matrix.
  • Loading branch information
JamesWrigley committed Jan 2, 2024
1 parent b6c073a commit 2aa7500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- { os: ubuntu-latest, version: '1.6', arch: x64}
- { os: ubuntu-latest, version: '^1.7.0-0', arch: x64}
- { os: ubuntu-latest, version: 'nightly', arch: x64}
- { os: ubuntu-latest, version: '1', arch: x86 }
- { os: windows-latest, version: '1', arch: x64}
- { os: macOS-latest, version: '1', arch: x64}

Expand Down
2 changes: 1 addition & 1 deletion src/ReTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ function fetchtests((mod, pat), verbose, module_header, maxidw; static, strict,
descwidth = 0
hasbroken = false

id = 1
id = Int64(1)
warned = Ref(false)

for ts in tests
Expand Down

0 comments on commit 2aa7500

Please sign in to comment.