Skip to content

Commit cc518fa

Browse files
committed
itype correction for Int32 plats
1 parent 93d0604 commit cc518fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/spqr.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ nn = 100
1919

2020
@test repr("text/plain", qr(sprandn(4, 4, 0.5)).Q) == "4×4 $(SparseArrays.SPQR.QRSparseQ{Float64, Int})"
2121

22-
@testset "element type of A: $eltyA" for eltyA in (Float64, ComplexF64), iltyA in (Int32, Int64)
22+
itypes = sizeof(Int) == 4 ? (Int32,) : (Int32, Int64)
23+
24+
@testset "element type of A: $eltyA" for eltyA in (Float64, ComplexF64), iltyA in itypes
2325
if eltyA <: Real
2426
A = sparse(iltyA[1:n; rand(1:m, nn - n)], iltyA[1:n; rand(1:n, nn - n)], randn(nn), m, n)
2527
else

0 commit comments

Comments
 (0)