Skip to content

Commit

Permalink
Merge pull request #8253 from rfourquet/big-ranges
Browse files Browse the repository at this point in the history
make `big` map ranges to ranges
  • Loading branch information
JeffBezanson committed Sep 7, 2014
2 parents 30c4160 + 6b2eca4 commit f20ddba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ for fn in _numeric_conversion_func_names
end
end

for fn in (:float,:float16,:float32,:float64)
for fn in (:float,:float16,:float32,:float64,:big)
@eval begin
$fn(r::FloatRange) = FloatRange($fn(r.start), $fn(r.step), r.len, $fn(r.divisor))
end
Expand Down
3 changes: 2 additions & 1 deletion base/number.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ one{T<:Number}(::Type{T}) = oftype(T,1)
const _numeric_conversion_func_names =
(:int,:integer,:signed,:int8,:int16,:int32,:int64,:int128,
:uint,:unsigned,:uint8,:uint16,:uint32,:uint64,:uint128,
:float,:float16,:float32,:float64)
:float,:float16,:float32,:float64,
:big)
1 change: 0 additions & 1 deletion base/sysimg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ importall .MPFR
big(n::Integer) = convert(BigInt,n)
big(x::FloatingPoint) = convert(BigFloat,x)
big(q::Rational) = big(num(q))//big(den(q))
big(z::Complex) = complex(big(real(z)),big(imag(z)))

# more hashing definitions
include("hashing2.jl")
Expand Down

0 comments on commit f20ddba

Please sign in to comment.