Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Sep 1, 2021
1 parent 3aeb8a9 commit 38c785e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/LayoutPointers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export stridedpointer
@inline _map(f::F, x::Tuple{X1}) where {F,X1} = (f(getfield(x,1,false)), )
@inline _map(f::F, x::Tuple{X1,X2,Vararg{Any,K}}) where {F,X1,X2,K} = (f(getfield(x,1,false)), _map(f, Base.tail(x))...)

@inline _map(f::F, x::Tuple{}, y::Tuple{}) where {F} = ()
@inline _map(f::F, x::Tuple{X1}, y::Tuple{Y1}) where {F,X1,Y1} = (f(getfield(x,1,false), getfield(y,1,false)), )
@inline _map(f::F, x::Tuple{X1,X2,Vararg{Any,K}}, y::Tuple{Y1,Y2,Vararg{Any,K}}) where {F,X1,X2,Y1,Y2,K} = (f(getfield(x,1,false), getfield(y,1,false)), _map(f, Base.tail(x), Base.tail(y))...)


"""
abstract type AbstractStridedPointer{T,N,C,B,R,X<:Tuple{Vararg{Integer,N}},O<:Tuple{Vararg{Integer,N}}} end
Expand Down

2 comments on commit 38c785e

@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/43998

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.1.3 -m "<description of version>" 38c785e7c6b7261afbcc16557e28d1afce28e639
git push origin v0.1.3

Please sign in to comment.