Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add +/- for FloatRange #6976

Merged
merged 1 commit into from
May 27, 2014
Merged

Conversation

stevengj
Copy link
Member

Fixes #6973.

end
end

$f{T1,T2}(r1::FloatRange{T1}, r2::FloatRange{T2}) =
Copy link
Member

Choose a reason for hiding this comment

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

T1 and T2 aren't necessary here.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

@JeffBezanson
Copy link
Member

Oh dear, we seem to have a strange problem here.

range($f(r1.start,r2.start), $f(step(r1),step(r2)), r1l)
end

function $f{T}(r1::FloatRange{T}, r2::FloatRange{T})
Copy link
Member

Choose a reason for hiding this comment

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

Ah, this needs to say T<:FloatingPoint due to issue #6383.

@JeffBezanson JeffBezanson merged commit f1f0ef6 into JuliaLang:master May 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

float ranges don't add anymore
2 participants