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

Precompilation warnings #76

Closed
milankl opened this issue Nov 25, 2022 · 2 comments · Fixed by #77
Closed

Precompilation warnings #76

milankl opened this issue Nov 25, 2022 · 2 comments · Fixed by #77
Labels
bug Something isn't working

Comments

@milankl
Copy link
Owner

milankl commented Nov 25, 2022

julia> using SoftPosit
[ Info: Precompiling SoftPosit [0775deef-a35f-56d7-82da-cfc52f91364d]
WARNING: Method definition (::Type{Int64})(SoftPosit.AbstractPosit) in module SoftPosit at /Users/milan/.julia/packages/SoftPosit/JY6kx/src/conversions.jl:72 overwritten at /Users/milan/.julia/packages/SoftPosit/JY6kx/src/conversions.jl:73.
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::Type{Int64})(SoftPosit.AbstractPosit) in module SoftPosit at /Users/milan/.julia/packages/SoftPosit/JY6kx/src/conversions.jl:73 overwritten at /Users/milan/.julia/packages/SoftPosit/JY6kx/src/conversions.jl:74.
  ** incremental compilation may be fatally broken for this module **
@milankl milankl added the bug Something isn't working label Nov 25, 2022
@giordano
Copy link
Contributor

Base.Int(x::AbstractPosit) = Int(Float64(x))
Base.Int(x::AbstractPosit) = Int(Float64(x))
Base.Int(x::AbstractPosit) = Int(Float64(x))
this is indeed quite interesting 😅

@milankl
Copy link
Owner Author

milankl commented Nov 25, 2022

No idea how that happened 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants