Skip to content

Commit 6044ef6

Browse files
author
Will Kimmerer
committed
fix type instability in struct definitions
1 parent b10702e commit 6044ef6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/iterator.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
struct GBIterator{O}
2-
p::Ref{LibGraphBLAS.GxB_Iterator}
2+
p::Base.RefValue{LibGraphBLAS.GxB_Iterator}
33
A::AbstractGBArray
44
function GBIterator(A::AbstractGBArray)
55
#garbaage collection

src/oriented.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mutable struct OrientedGBMatrix{T, F, O} <: AbstractGBMatrix{T, F}
2-
p::Ref{LibGraphBLAS.GrB_Matrix}
2+
p::Base.RefValue{LibGraphBLAS.GrB_Matrix}
33
fill::F
44
end
55

src/types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ compressed sparse vector.
243243
See also: [`GBMatrix`](@ref).
244244
"""
245245
mutable struct GBVector{T, F} <: AbstractGBVector{T, F}
246-
p::Ref{LibGraphBLAS.GrB_Matrix} # a GBVector is a GBMatrix internally.
246+
p::Base.RefValue{LibGraphBLAS.GrB_Matrix} # a GBVector is a GBMatrix internally.
247247
fill::F
248248
end
249249

@@ -263,7 +263,7 @@ the following in either row or column orientation:
263263
The storage type is automatically determined by the library.
264264
"""
265265
mutable struct GBMatrix{T, F} <: AbstractGBMatrix{T, F}
266-
p::Ref{LibGraphBLAS.GrB_Matrix}
266+
p::Base.RefValue{LibGraphBLAS.GrB_Matrix}
267267
fill::F
268268
end
269269

0 commit comments

Comments
 (0)