Skip to content

Commit e8e6463

Browse files
yhaBeastyBlacksmith
authored andcommitted
Fix for 32-bit
1 parent bcff7d0 commit e8e6463

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ticks.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function postdecimal_digits(x::T) where {T}
4444
return 0
4545
end
4646
struct Ticks{T} <: AbstractRange{T}
47-
u::UnitRange{Int}
47+
u::UnitRange{Int64}
4848
q::Int
4949
z::Int
5050
step::Float64
@@ -69,8 +69,8 @@ Base.show(io::IO, t::Ticks{T}) where T = print(io, _ticks_str(t), " * ", oneunit
6969

7070
function restrict_ticks(t::Ticks{T}, from, to) where T
7171
tickspan = step(t)
72-
u_start = max(first(t.u), ceil(Int, from / tickspan))
73-
u_end = min(last(t.u), floor(Int, to / tickspan))
72+
u_start = max(first(t.u), ceil(Int64, from / tickspan))
73+
u_end = min(last(t.u), floor(Int64, to / tickspan))
7474
t = Ticks{T}(u_start:u_end,t.q,t.z)
7575

7676
# Fix possible floating-point errors (may occur in division above, or due

0 commit comments

Comments
 (0)