Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "StaticArraysCore"
uuid = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
version = "1.4.3"
version = "1.4.4"

[compat]
julia = "1.6"
Expand Down
6 changes: 5 additions & 1 deletion src/StaticArraysCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,11 @@ struct SizedArray{S<:Tuple,T,N,M,TData<:AbstractArray{T,M}} <: StaticArray{S,T,N
function SizedArray{S,T,N,M,TData}(a::TData) where {S<:Tuple,T,N,M,TData<:AbstractArray{T,M}}
Base.require_one_based_indexing(a)
if size(a) != size_to_tuple(S) && size(a) != (tuple_prod(S),)
throw(DimensionMismatch("Dimensions $(size(a)) don't match static size $S"))
if VERSION >= v"1.8"
throw(DimensionMismatch(lazy"Dimensions $(size(a)) don't match static size $S"))
else
throw(DimensionMismatch("Dimensions $(size(a)) don't match static size $S"))
end
end
return new{S,T,N,M,TData}(a)
end
Expand Down
Loading