Skip to content

Commit

Permalink
remove unneeded ndims definition
Browse files Browse the repository at this point in the history
was causing an invalidation
  • Loading branch information
jwahlstrand committed Dec 14, 2024
1 parent 3f31ff8 commit eee44ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/GdkPixbufLib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ width(a::MatrixStrided) = a.width
height(a::MatrixStrided) = a.height
size(a::MatrixStrided, i::Integer) = (i == 1 ? width(a) : (i == 2 ? height(a) : 1))
size(a::MatrixStrided) = (width(a), height(a))
Base.ndims(::MatrixStrided) = 2
# next line was causing invalidations
# convert(::Type{P}, a::MatrixStrided) where {P <: Ptr} = convert(P, a.p)
bstride(a::MatrixStrided, i) = (i == 1 ? sizeof(eltype(a)) : (i == 2 ? a.rowstride : 0))
Expand Down

0 comments on commit eee44ff

Please sign in to comment.