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

fix ambiguity warnings trunc(BigInt,::Float16) #13408

Merged
merged 1 commit into from
Oct 3, 2015
Merged

Conversation

simonbyrne
Copy link
Contributor

cf #13376

@@ -121,18 +121,18 @@ end
convert(::Type{BigInt}, x::Bool) = BigInt(UInt(x))


function unsafe_trunc(::Type{BigInt}, x::CdoubleMax)
function unsafe_trunc(::Type{BigInt}, x::Union(Float32,Float64))
Copy link
Contributor

Choose a reason for hiding this comment

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

Union{Float32,Float64}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Clearly I haven't been making enough PRs lately. Thanks

@simonbyrne
Copy link
Contributor Author

I don't think the remaining ambiguity warnings are my fault.

@tkelman
Copy link
Contributor

tkelman commented Oct 2, 2015

The remaining ones look like #13397, cc @andreasnoack. This PR lgtm.

tkelman added a commit that referenced this pull request Oct 3, 2015
fix ambiguity warnings trunc(BigInt,::Float16)
@tkelman tkelman merged commit 4bfe569 into master Oct 3, 2015
@tkelman tkelman deleted the sb/bigint-trunc branch October 3, 2015 04:55
simonbyrne added a commit that referenced this pull request Oct 31, 2015
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.

2 participants