Skip to content

Commit caabd83

Browse files
committed
Fix #3790
1 parent a9d73ac commit caabd83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/abstractarray.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ isfloat64{T<:Float32,n}(x::AbstractArray{T,n}) = true
2121
ndims{T,n}(::AbstractArray{T,n}) = n
2222
ndims{T,n}(::Type{AbstractArray{T,n}}) = n
2323
ndims{T<:AbstractArray}(::Type{T}) = ndims(super(T))
24-
length(t::AbstractArray) = prod(size(t))
24+
length(t::AbstractArray) = prod(size(t))::Int
2525
endof(a::AbstractArray) = length(a)
2626
first(a::AbstractArray) = a[1]
2727
last(a::AbstractArray) = a[end]

0 commit comments

Comments
 (0)