diff --git a/Project.toml b/Project.toml index 2cd8d11..193cd71 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StridedViews" uuid = "4db3bf67-4bd7-4b4e-b153-31dc3fb37143" authors = ["Lukas Devos ", "Jutho Haegeman "] -version = "0.5.7" +version = "0.5.8" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" diff --git a/src/auxiliary.jl b/src/auxiliary.jl index 776e3e3..bbbc481 100644 --- a/src/auxiliary.jl +++ b/src/auxiliary.jl @@ -164,7 +164,7 @@ _computereshapestrides(newsize::Tuple{}, oldsize::Dims, strides::Dims) = () _computereshapestrides(newsize::Dims, oldsize::Tuple{}, strides::Tuple{}) = newsize function _computereshapestrides(newsize::Dims, oldsize::Dims{N}, strides::Dims{N}) where {N} d, r = divrem(oldsize[1], newsize[1]) - return if r == 0 + if r == 0 s1 = strides[1] if d == 1 # not shrinking the following tuples helps type inference