From 55e49aef80a3513d64b9c2c38ad45d8be86334e5 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Wed, 29 Apr 2026 13:31:14 +0200 Subject: [PATCH 1/2] fix for Static.jl v1.4 --- src/stridelayout.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stridelayout.jl b/src/stridelayout.jl index 069ea0b..5cd5ea4 100644 --- a/src/stridelayout.jl +++ b/src/stridelayout.jl @@ -435,7 +435,7 @@ function dense_dims(@nospecialize T::Type{<:Base.ReshapedArray}) end end -is_dense(A) = all(dense_dims(A)) ? True() : False() +is_dense(A) = all(Bool, dense_dims(A)) ? True() : False() """ known_strides(::Type{T}) -> Tuple From c2111fb18fb7aebd3d39c3c5ddd5e40a6aa73450 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Wed, 29 Apr 2026 13:42:20 +0200 Subject: [PATCH 2/2] fix another location --- src/stridelayout.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stridelayout.jl b/src/stridelayout.jl index 5cd5ea4..4c42380 100644 --- a/src/stridelayout.jl +++ b/src/stridelayout.jl @@ -428,7 +428,7 @@ function dense_dims(@nospecialize T::Type{<:Base.ReshapedArray}) d = dense_dims(parent_type(T)) if d === nothing return nothing - elseif all(d) + elseif all(Bool, d) return ntuple(Compat.Returns(True()), StaticInt(ndims(T))) else return ntuple(Compat.Returns(False()), StaticInt(ndims(T)))