Skip to content

Commit add7611

Browse files
authored
fix deprecated syntax: Wrapping Vararg directly in UnionAll (#325)
* fix deprecated syntax: Wrapping Vararg directly in UnionAll Syntax like this seems to be deprecated: `inds::Vararg{<:Integer,N}`, so I removed the `<:`. ``` $ julia -O3 --min-optlevel=3 --depwarn=error --warn-overwrite=yes _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.10.0-DEV.453 (2023-01-28) _/ |\__'_|_|_|\__'_| | Commit 7d4309c9c31 (0 days old master) |__/ | julia> using OffsetArrays [ Info: Precompiling OffsetArrays [6fe1bfb0-de20-5000-8ca7-80f57d26f881] ERROR: LoadError: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead). Stacktrace: [1] UnionAll(v::TypeVar, t::Any) @ Core ./boot.jl:257 [2] top-level scope @ ~/tmp/OffsetArrays.jl/src/OffsetArrays.jl:660 ``` Fixes #324 * bump patch version
1 parent 08dc371 commit add7611

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "OffsetArrays"
22
uuid = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
3-
version = "1.12.8"
3+
version = "1.12.9"
44

55
[deps]
66
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/OffsetArrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ end
657657
_unsafe_wrap(pointer, inds; kw...)
658658
end
659659
# Avoid ambiguity
660-
@inline function Base.unsafe_wrap(::OffsetArrayUnion{T,N}, pointer::Ptr{T}, inds::Vararg{<:Integer,N}; kw...) where {T,N}
660+
@inline function Base.unsafe_wrap(::OffsetArrayUnion{T,N}, pointer::Ptr{T}, inds::Vararg{Integer,N}; kw...) where {T,N}
661661
_unsafe_wrap(pointer, inds; kw...)
662662
end
663663

0 commit comments

Comments
 (0)