diff --git a/src/ticks.jl b/src/ticks.jl index 60008a2..bad2af2 100644 --- a/src/ticks.jl +++ b/src/ticks.jl @@ -32,7 +32,7 @@ function bounding_order_of_magnitude(xspan::DT) where DT end struct Ticks{T} <: AbstractRange{T} - u::UnitRange{Int} + u::UnitRange{Int64} q::Int z::Int step::Float64 @@ -49,8 +49,8 @@ Base.show(io::IO, t::Ticks{T}) where T = print(io, _ticks_str(t), " * ", oneunit function restrict_ticks(t::Ticks{T}, from, to) where T tickspan = step(t) - u_start = max(first(t.u), ceil(Int, from / tickspan)) - u_end = min(last(t.u), floor(Int, to / tickspan)) + u_start = max(first(t.u), ceil(Int64, from / tickspan)) + u_end = min(last(t.u), floor(Int64, to / tickspan)) t = Ticks{T}(u_start:u_end,t.q,t.z) # Fix possible floating-point errors (may occur in division above, or due