From d543cbea8fac70940acb61ee6eebe53e9cc758de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Tue, 11 Feb 2025 14:07:34 +0100 Subject: [PATCH] Explicitely qualify extended constructors (#190) --- src/DecFP.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DecFP.jl b/src/DecFP.jl index 4e688ac..3aead45 100644 --- a/src/DecFP.jl +++ b/src/DecFP.jl @@ -581,9 +581,9 @@ for (f) in (:trunc, :floor, :ceil) end end -Signed(x::DecimalFloatingPoint) = Int(x) -Unsigned(x::DecimalFloatingPoint) = UInt(x) -Integer(x::DecimalFloatingPoint) = Int(x) +Base.Signed(x::DecimalFloatingPoint) = Int(x) +Base.Unsigned(x::DecimalFloatingPoint) = UInt(x) +Base.Integer(x::DecimalFloatingPoint) = Int(x) function (::Type{I})(x::DecimalFloatingPoint) where {I<:Integer} x != trunc(x) && throw(InexactError(:convert, I, x))