Skip to content

Commit

Permalink
Merge pull request #160 from kalmarek/invalidations
Browse files Browse the repository at this point in the history
Remove constructor of Int from `ArfLike` and add from `ArfOrRef`
  • Loading branch information
kalmarek authored Jan 11, 2023
2 parents 5d05bd1 + f443516 commit a9c2406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function Acb(re::AbstractString, im::AbstractString; prec::Integer = DEFAULT_PRE
return res
end

Base.Int(x::ArfLike; rnd::Union{arb_rnd,RoundingMode} = RoundNearest) =
Base.Int(x::ArfOrRef; rnd::Union{arb_rnd,RoundingMode} = RoundNearest) =
is_int(x) ? get_si(x, rnd) : throw(InexactError(:Int64, Int64, x))

Base.Float64(x::MagLike) = get(x)
Expand Down

0 comments on commit a9c2406

Please sign in to comment.