Skip to content

Commit 86bd960

Browse files
committed
refine
1 parent 0834bd3 commit 86bd960

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "FillArrays"
22
uuid = "1a297f60-69ca-5386-bcde-b61e274b549b"
3-
version = "0.12.0"
3+
version = "0.11.8"
44

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

src/trues.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ end
4646

4747
# https://github.com/JuliaArrays/FillArrays.jl/issues/148
4848
function Base.getindex(
49-
a::FillArrays.AbstractFill{T, 1, Axes} where Axes,
50-
b::Trues{1, Tuple{Base.OneTo{Int64}}}) where T
49+
a::AbstractFill{T, 1, Axes} where Axes,
50+
b::Trues{1, Tuple{Base.OneTo{Int}}}) where T
5151
@boundscheck length(a) == length(b) || throw(BoundsError(a, b))
52-
return Fill(a[1], length(a))
52+
return Fill(getindex_value(a), length(a))
5353
end

0 commit comments

Comments
 (0)