Skip to content

Commit

Permalink
Make date ranges internal guess() type stable to fix 32-bit testing f…
Browse files Browse the repository at this point in the history
…ailure
  • Loading branch information
quinnj committed Aug 18, 2014
1 parent 6ca401c commit 9f81a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/dates/ranges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Base.colon{T<:DateTime}(start::T, stop::T) = StepRange(start, Day(1), stop)

# Given a start and end date, how many steps/periods are in between
guess(a::DateTime,b::DateTime,c) = ifloor((int128(b) - int128(a))/toms(c))
guess(a::Date,b::Date,c) = int(div(int(b - a),days(c)))
guess(a::DateTime,b::DateTime,c) = ifloor(Int64,(int128(b) - int128(a))/toms(c))
guess(a::Date,b::Date,c) = int64(div(int64(b - a),days(c)))
function len(a,b,c)
lo, hi, st = min(a,b), max(a,b), abs(c)
i = guess(a,b,c)-1
Expand Down

0 comments on commit 9f81a60

Please sign in to comment.