JuliaMath / JuliaMath/FixedPointDecimals.jl
Stack overflow when calling constructor with only first type parameter
Open
- Dominant language
- Julia
- Stars
- 37
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
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
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.