Skip to content

Commit f887f3a

Browse files
authored
Update src/StaticArraysCore.jl
1 parent 1df960e commit f887f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StaticArraysCore.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ struct SizedArray{S<:Tuple,T,N,M,TData<:AbstractArray{T,M}} <: StaticArray{S,T,N
264264
function SizedArray{S,T,N,M,TData}(a::TData) where {S<:Tuple,T,N,M,TData<:AbstractArray{T,M}}
265265
Base.require_one_based_indexing(a)
266266
if size(a) != size_to_tuple(S) && size(a) != (tuple_prod(S),)
267-
if VERSION >= v"1.8"
267+
@static if VERSION >= v"1.8"
268268
throw(DimensionMismatch(lazy"Dimensions $(size(a)) don't match static size $S"))
269269
else
270270
throw(DimensionMismatch("Dimensions $(size(a)) don't match static size $S"))

0 commit comments

Comments
 (0)