diff --git a/src/Double.jl b/src/Double.jl index e51d8856..ba2ab851 100644 --- a/src/Double.jl +++ b/src/Double.jl @@ -213,8 +213,8 @@ DoubleFloat(x::Int64) = Double64(x, zero(Int64)) DoubleFloat(x::Int32) = Double32(x, zero(Int32)) DoubleFloat(x::Int16) = Double16(x, zero(Int16)) -# overload Base._precision to support the base keyword in Julia 1.8 -let precision = isdefined(Base, :_precision) ? :_precision : :precision +# overload Base._precision_with_base_2 or Base._precision to support the base keyword in Julia 1.8 +let precision = isdefined(Base, :_precision_with_base_2) ? :_precision_with_base_2 : isdefined(Base, :_precision) ? :_precision : :precision @eval Base.$precision(::Type{DoubleFloat{T}}) where {T<:IEEEFloat} = 2*Base.$precision(T) end