From db6d8b9a4da5f3e6f94ea4570ceccf4166e521f4 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Thu, 29 Jul 2021 02:03:48 +0200 Subject: [PATCH] fix call of floatrange on 1.7+ (#703) --- src/hist.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hist.jl b/src/hist.jl index 3607b2ddb..d1690b0af 100644 --- a/src/hist.jl +++ b/src/hist.jl @@ -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} =