Skip to content

Commit

Permalink
reorder sysimg to fix #5885
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Mar 18, 2014
1 parent ba71cc8 commit f611868
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 6 additions & 0 deletions base/range.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ function frange{T<:FloatingPoint}(start::T, step::T, stop::T)
start, step, floor(r)+1, one(step)
end

colon{T<:FloatingPoint}(start::T, step::T, stop::T) =
step == 0 ? error("step cannot be zero in colon syntax") :
start == stop ? FloatRange{T}(start,step,1,1) :
(0 < step) != (start < stop) ? FloatRange{T}(start,step,0,1) :
FloatRange{T}(frange(start,step,stop)...)

similar(r::Ranges, T::Type, dims::Dims) = Array(T, dims)

length(r::Ranges) = integer(r.len)
Expand Down
18 changes: 6 additions & 12 deletions base/sysimg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,24 +112,18 @@ import .Grisu.print_shortest
include("file.jl")
include("methodshow.jl")

# core math functions
include("floatfuncs.jl")
include("math.jl")
importall .Math
include("float16.jl")

# multidimensional arrays
include("cartesian.jl")
using .Cartesian
include("multidimensional.jl")

# FIXME: #5885
colon{T<:FloatingPoint}(start::T, step::T, stop::T) =
step == 0 ? error("step cannot be zero in colon syntax") :
start == stop ? FloatRange{T}(start,step,1,1) :
(0 < step) != (start < stop) ? FloatRange{T}(start,step,0,1) :
FloatRange{T}(frange(start,step,stop)...)

# core math functions
include("floatfuncs.jl")
include("math.jl")
importall .Math
include("primes.jl")
include("float16.jl")

# concurrency and parallelism
include("serialize.jl")
Expand Down

0 comments on commit f611868

Please sign in to comment.