Skip to content

Commit e4d8979

Browse files
committed
typo
1 parent fe92f1d commit e4d8979

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/rational.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ function (::Type{T})(x::Rational{S}) where T<:AbstractFloat where S
145145
P = promote_type(T,S)
146146
convert(T, convert(P,x.num)/convert(P,x.den))::T
147147
end
148-
Float16(x::Rational{<:Union{Int16,Int32,Int64,Int128,UInt16,UInt32,UInt64,UInt128}})
149-
= Float16(Float32(x)) # avoid spurious overflow (#52394)
148+
Float16(x::Rational{<:Union{Int16,Int32,Int64,Int128,UInt16,UInt32,UInt64,UInt128}}) =
149+
Float16(Float32(x)) # avoid spurious overflow (#52394)
150150

151151
function Rational{T}(x::AbstractFloat) where T<:Integer
152152
r = rationalize(T, x, tol=0)

0 commit comments

Comments
 (0)