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

Stack overflow when calling constructor with only first type parameter #70

Open
mbarbar opened this issue Mar 2, 2022 · 0 comments
Open

Comments

@mbarbar
Copy link

mbarbar commented Mar 2, 2022

Had once forgotten to add the second type parameter but I was met with a stack overflow:

julia> FixedDecimal{Int8}(5)
ERROR: StackOverflowError:
Stacktrace:
     [1] convert(#unused#::Type{FixedDecimal{Int8}}, x::Int64)
       @ Base ./number.jl:7
     [2] (FixedDecimal{Int8})(x::Int64)
       @ FixedPointDecimals ~/.julia/packages/FixedPointDecimals/GFltp/src/FixedPointDecimals.jl:103
--- the last 2 lines are repeated 39990 more times ---
 [79983] convert(#unused#::Type{FixedDecimal{Int8}}, x::Int64)
       @ Base ./number.jl:7
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

No branches or pull requests

1 participant