Skip to content

Commit

Permalink
Fix #3790
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jul 23, 2013
1 parent a9d73ac commit caabd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/abstractarray.jl
Expand Up @@ -21,7 +21,7 @@ isfloat64{T<:Float32,n}(x::AbstractArray{T,n}) = true
ndims{T,n}(::AbstractArray{T,n}) = n
ndims{T,n}(::Type{AbstractArray{T,n}}) = n
ndims{T<:AbstractArray}(::Type{T}) = ndims(super(T))
length(t::AbstractArray) = prod(size(t))
length(t::AbstractArray) = prod(size(t))::Int
endof(a::AbstractArray) = length(a)
first(a::AbstractArray) = a[1]
last(a::AbstractArray) = a[end]
Expand Down

1 comment on commit caabd83

@timholy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC @JeffBezanson (I doubt this is the way you want to fix it, but perhaps this will help localize the compiler limitation)

Please sign in to comment.