Closed torfjelde closed 2 years ago
pow(::Float32, ::Float64) results in a StackOverflowError due to the use of float in the default implementation: https://github.com/mlubin/NaNMath.jl/blob/0fc4df8442fcefebe8efe490781fce5663c03b02/src/NaNMath.jl#L23-L25
pow(::Float32, ::Float64)
float
Maybe there ought to be a promote here?
promote
That could work, feel free to open a PR.
Closed by https://github.com/mlubin/NaNMath.jl/pull/50 and tagged a new release
pow(::Float32, ::Float64)
results in a StackOverflowError due to the use offloat
in the default implementation: https://github.com/mlubin/NaNMath.jl/blob/0fc4df8442fcefebe8efe490781fce5663c03b02/src/NaNMath.jl#L23-L25Maybe there ought to be a
promote
here?