Skip to content

Commit

Permalink
Add StaticInt
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Oct 29, 2021
1 parent 2869a4f commit f1259ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ptr_array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ end

@inline ArrayInterface._axes(A::AbstractStrideArray{S,D,T,N}, i::Integer) where {S,D,T,N} = __axes(A, i)
@inline ArrayInterface._axes(A::AbstractStrideArray{S,D,T,N}, i::Int) where {S,D,T,N} = __axes(A, i)
@inline ArrayInterface._axes(A::AbstractStrideArray{S,D,T,N}, ::StaticInt{I}) where {S,D,T,N,I} = __axes(A, StaticInt{I}())

@inline function __axes(A::AbstractStrideArray{S,D,T,N}, i::Integer) where {S,D,T,N}
if i N
Expand Down

2 comments on commit f1259ba

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/47761

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.8 -m "<description of version>" f1259bac34ff1fbeb3e0b77a30dee73958acc1f7
git push origin v0.2.8

Please sign in to comment.