Skip to content

Commit 50adfd2

Browse files
authored
Julia v1.9 (#88)
* Julia v1.9 * v0.9.6
1 parent 99836d2 commit 50adfd2

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
version:
1313
- '1.6'
1414
- '1'
15+
- '^1.9.0-0'
1516
os:
1617
- ubuntu-latest
1718
- macOS-latest

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "QuasiArrays"
22
uuid = "c4ea9172-b204-11e9-377d-29865faadc5c"
33
authors = ["Sheehan Olver <[email protected]>"]
4-
version = "0.9.5"
4+
version = "0.9.6"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/QuasiArrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Base: getindex, size, axes, axes1, length, ==, isequal, iterate, Cartesia
66
isreal, iszero, isempty, empty, isapprox, fill!, getproperty, showarg
77
import Base: @_inline_meta, DimOrInd, OneTo, @_propagate_inbounds_meta, @_noinline_meta,
88
DimsInteger, error_if_canonical_getindex, @propagate_inbounds, _return_type,
9-
_maybetail, tail, _getindex, _maybe_reshape, index_ndims, _unsafe_getindex,
9+
safe_tail, tail, _getindex, _maybe_reshape, index_ndims, _unsafe_getindex,
1010
index_shape, to_shape, @nloops, @ncall, unalias, _unaliascopy,
1111
to_index, to_indices, _to_subscript_indices, _splatmap, dataids,
1212
compute_stride1, compute_offset1, fill_to_length

src/indices.jl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,19 @@ to_indices(A::AbstractQuasiArray, inds, ::Tuple{}) = ()
111111
to_indices(A::AbstractQuasiArray, ::Tuple{}, I::Tuple{Any,Vararg{Any}}) =
112112
(@_inline_meta; (to_index(A, I[1]), to_indices(A, (), tail(I))...))
113113
to_indices(A::AbstractQuasiArray, inds, I::Tuple{Any,Vararg{Any}}) =
114-
(@_inline_meta; (to_quasi_index(A, eltype(inds[1]), I[1]), to_indices(A, _maybetail(inds), tail(I))...))
114+
(@_inline_meta; (to_quasi_index(A, eltype(inds[1]), I[1]), to_indices(A, _cutdim(inds, I[1]), tail(I))...))
115115
@inline to_indices(A::AbstractQuasiArray, inds, I::Tuple{CartesianIndex, Vararg{Any}}) =
116116
to_indices(A, inds, (I[1].I..., tail(I)...))
117117
@inline to_indices(A::AbstractQuasiArray, inds, I::Tuple{Colon, Vararg{Any}}) =
118-
(uncolon(inds, I), to_indices(A, _maybetail(inds), tail(I))...)
119-
118+
(_uncolon(inds, I), to_indices(A, _cutdim(inds, I[1]), tail(I))...)
120119

120+
_cutdim(inds, I1) = safe_tail(inds)
121121

122+
if VERSION < v"1.9-"
123+
_uncolon(inds, I) = uncolon(inds, I)
124+
else
125+
_uncolon(inds, I) = uncolon(inds)
126+
end
122127
LinearIndices(A::AbstractQuasiArray) = LinearIndices(axes(A))
123128

124129

0 commit comments

Comments
 (0)