diff --git a/src/conversions.jl b/src/conversions.jl index 540e738..8c0d2d7 100644 --- a/src/conversions.jl +++ b/src/conversions.jl @@ -686,10 +686,10 @@ convert(::Type{Uint32}, ac::ARGB32) = ac.color convert{C,T}(::Type{AlphaColorValue{C,T}}, c::AlphaColorValue{C,T}) = c function convert{C,T,D,U}(::Type{AlphaColorValue{C,T}}, c::AbstractAlphaColorValue{D,U}) - AlphaColorValue{T}(convert(C, c.c), c.alpha) + AlphaColorValue{C,T}(convert(C, c.c), c.alpha) end convert{C,T}(::Type{AlphaColorValue{C,T}}, c::ColorValue) = - AlphaColorValue(convert(C, c), one(T)) + AlphaColorValue{C,T}(convert(C, c), one(T)) convert(::Type{ARGB32}, c::ARGB32) = c convert{CV<:AbstractRGB{Ufixed8}}(::Type{ARGB32}, c::AbstractAlphaColorValue{CV,Ufixed8}) =