JuliaMath / JuliaMath/FixedPointDecimals.jl

Stack overflow when calling constructor with only first type parameter

Open
#70 0 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.