Skip to content

Commit 6e7afc0

Browse files
committed
Workaround upstream weak type inference
Workaround JuliaLang/julia#13082. Trying to partially fix JuliaImages#356.
1 parent 818fbc6 commit 6e7afc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type Image{T,N,A<:AbstractArray} <: AbstractImageDirect{T,N}
1111
data::A
1212
properties::Dict{ASCIIString,Any}
1313
end
14-
Image(data::AbstractArray, props::Dict) = Image{eltype(data),ndims(data),typeof(data)}(data,props)
14+
Image{T,N}(data::AbstractArray{T,N}, props::Dict) = Image{eltype(data),N,typeof(data)}(data,props)
1515
Image(data::AbstractArray; kwargs...) = Image(data, kwargs2dict(kwargs))
1616

1717
# Indexed image (colormap)

0 commit comments

Comments
 (0)