Skip to content

Commit 43de14c

Browse files
authored
cosmetic: getfield(a, :size) -> a.size (#45)
1 parent 3ad7e14 commit 43de14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FixedSizeArrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Base.IndexStyle(::Type{<:FixedSizeArray}) = IndexLinear()
3737
Base.@propagate_inbounds Base.getindex(A::FixedSizeArray, i::Int) = A.mem[i]
3838
Base.@propagate_inbounds Base.setindex!(A::FixedSizeArray, v, i::Int) = A.mem[i] = v
3939

40-
Base.size(a::FixedSizeArray) = getfield(a, :size)
40+
Base.size(a::FixedSizeArray) = a.size
4141

4242
function Base.similar(::FixedSizeArray, ::Type{S}, size::NTuple{N,Int}) where {S,N}
4343
FixedSizeArray{S,N}(undef, size)

0 commit comments

Comments
 (0)