Skip to content

Commit 22c64ef

Browse files
committed
Make method more specific.
1 parent 4fc2d6f commit 22c64ef

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ArrayInterface"
22
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3-
version = "2.13.2"
3+
version = "2.13.3"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/static.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ StaticInt(::StaticInt{N}) where {N} = StaticInt{N}()
1616
StaticInt(::Val{N}) where {N} = StaticInt{N}()
1717
# Base.Val(::StaticInt{N}) where {N} = Val{N}()
1818
Base.convert(::Type{T}, ::StaticInt{N}) where {T<:Number,N} = convert(T, N)
19-
(::Type{T})(x) where {T<:StaticInt} = StaticInt(x)
20-
# (::Type{T})(::ArrayInterface.StaticInt{N}) where {T,N} = T(N)
19+
(::Type{T})(x::Int) where {T<:StaticInt} = StaticInt(x)
2120
Base.convert(::Type{StaticInt{N}}, ::StaticInt{N}) where {N} = StaticInt{N}()
2221

2322
Base.promote_rule(::Type{<:StaticInt}, ::Type{T}) where {T <: AbstractIrrational} = promote_rule(Int, T)

0 commit comments

Comments
 (0)