Improve type stability of _stepbins_path
This commit is contained in:
parent
db1e25252a
commit
7214b8b1b1
@ -538,7 +538,7 @@ function _stepbins_path(edge, weights, baseline::Real, xscale::Symbol, yscale::S
|
|||||||
w, it_state_w = it_tuple_w
|
w, it_state_w = it_tuple_w
|
||||||
|
|
||||||
if (log_scale_x && a ≈ 0)
|
if (log_scale_x && a ≈ 0)
|
||||||
a = b/_logScaleBases[xscale]^3
|
a = oftype(a, b/_logScaleBases[xscale]^3)
|
||||||
end
|
end
|
||||||
|
|
||||||
if isnan(w)
|
if isnan(w)
|
||||||
@ -559,8 +559,8 @@ function _stepbins_path(edge, weights, baseline::Real, xscale::Symbol, yscale::S
|
|||||||
push!(y, w)
|
push!(y, w)
|
||||||
end
|
end
|
||||||
|
|
||||||
a = b
|
a = oftype(a, b)
|
||||||
last_w = w
|
last_w = oftype(last_w, w)
|
||||||
|
|
||||||
it_tuple_e = iterate(edge, it_state_e)
|
it_tuple_e = iterate(edge, it_state_e)
|
||||||
it_tuple_w = iterate(weights, it_state_w)
|
it_tuple_w = iterate(weights, it_state_w)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user