From 3998f21e4f011d964a08cb94df385d2cc9ca7ff0 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 3 Apr 2026 19:29:49 +0000 Subject: [PATCH] Replace deprecated 3-arg Base.rtoldefault with 1-arg form The 3-argument form Base.rtoldefault(S, T, atol) is deprecated in Julia pre-release. Use the 1-argument form with real(promote_type(S, T)) instead. https://claude.ai/code/session_01SGAgzkbRVNAL51y3Fo9fni --- src/comp.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comp.jl b/src/comp.jl index 16f8697..1453487 100644 --- a/src/comp.jl +++ b/src/comp.jl @@ -83,9 +83,9 @@ Base.isequal(p::Polynomial{V, M}, q::Polynomial{V, M}) where {V, M} = _compare(p function Base.isapprox( p::Polynomial{V,M,S}, q::Polynomial{V,M,T}; - rtol::Real = Base.rtoldefault(S, T, 0), + rtol::Real = Base.rtoldefault(real(promote_type(S, T))), atol::Real = 0, - ztol::Real = iszero(atol) ? Base.rtoldefault(S, T, 0) : atol, + ztol::Real = iszero(atol) ? Base.rtoldefault(real(promote_type(S, T))) : atol, ) where {V,M,S,T} i = j = 1 while i <= length(p.x) || j <= length(q.x)