Skip to content

Commit

Permalink
fix call of floatrange on 1.7+ (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Jul 29, 2021
1 parent 8f61785 commit db6d8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hist.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function histrange(lo::F, hi::F, n::Integer, closed::Symbol=:left) where F
len += one(F)
end
end
Base.floatrange(start,step,len,divisor)
Base.floatrange(start,step,Int(len),divisor)
end

histrange(vs::NTuple{N,AbstractVector},nbins::NTuple{N,Integer},closed::Symbol) where {N} =
Expand Down

0 comments on commit db6d8b9

Please sign in to comment.